Skip to content

Commit 03ac5d6

Browse files
committed
Removed code that is no longer needed
1 parent bbcd84d commit 03ac5d6

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

conf/postgres_opttune.conf

-24
Original file line numberDiff line numberDiff line change
@@ -55,27 +55,3 @@ pguser = postgres # PostgreSQL user name(Database user)
5555
pgpassword = postgres12 # PostgreSQL user password(Database user)
5656
pgdatabase = sampling # PostgreSQL Database
5757

58-
#######################################################################
59-
##### Experimental settings(Deprecated, will not be used in the future)
60-
[pgbench]
61-
scale_factor = 10 # pgbench scale factor
62-
clients = 10 # Number of clients
63-
evaluation_time = 300 # time of benchmark run
64-
65-
[oltpbench]
66-
oltpbench_path = /opt/oltpbench # Oltpbenchmark directory path
67-
benchmark_kind = tpcc # Benchmark kind name
68-
oltpbench_config_path = ./conf/tpcc_config_postgres.xml # config path
69-
70-
[star-schema-benchmark]
71-
ssb_dbgen_path = /opt/ssb-dbgen # ssb-dbgen directory path
72-
scale_factor = 1 # ssb-dbgen sacle factor
73-
clients = 1 # Number of clients
74-
# Note: At the moment, only support 1.
75-
# If two or more are specified, multiple clients will execute the same SQL.
76-
sql_file_path = ./pgopttune/workload/star_schema_sql/
77-
sql_key = Q1.1, Q2.1, Q3.1
78-
# List of queries to be executed by the client (comma-separated)
79-
# Please specify the name of the file in pgopttune/workload/star_schema_sql/ directory(sql_file_path parameter diretory)
80-
# (e.g., Q1.1,Q2,1).
81-
#######################################################################

tune.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def main(
4545

4646
# Estimate the wal_max_size based on the recovery time allowed.
4747
if int(tune_config.required_recovery_time_second) != 0 \
48-
and (tune_config.benchmark in ['my_workload', 'pgbench', 'oltpbench']):
48+
and (tune_config.benchmark in ['my_workload']):
4949
logger.info('Start to estimate the wal_max_size and checkpoint_timeout parameter. \n'
5050
'required_recovery_time_second = "{}s"'.format(tune_config.required_recovery_time_second))
5151
recovery = Recovery(postgres_server_config,

0 commit comments

Comments
 (0)