@@ -19,12 +19,12 @@ ssh_port = 22 # ssh port
19
19
ssh_password = postgres # pg_os_user's ssh password
20
20
21
21
[turning]
22
- study_name = pgbench_study # study name
22
+ study_name = my_workload_study # study name
23
23
required_recovery_time_second = 0
24
24
# The maximum recovery time allowed by the user in case of a PostgreSQL crash,
25
25
# which is used to estimate the wax_wal_size parameter.
26
26
# Note: The default value of 0 does not perform the estimation of the wax_wal_size parameter.
27
- benchmark = pgbench # Benchmark tool name('sampled_workload' or pgbench' or 'oltpbench' or 'star_schema_benchmark')
27
+ benchmark = my_workload # Benchmark tool name('my_workload' or 'sampled_workload' or pgbench' or 'oltpbench' or 'star_schema_benchmark')
28
28
parameter_json_dir = ./conf/
29
29
number_trail = 100 # Number of benchmarks to run for turning
30
30
data_load_interval = 10 # Specify the data load interval by the number of benchmarks
@@ -34,10 +34,26 @@ save_study_history = True # Whether to save study history
34
34
load_study_history = True # Whether to load study history if a study name already exists.
35
35
history_database_url = sqlite:///study-history.db # Example PostgreSQL. postgresql://postgres@localhost/study_history
36
36
37
- [sampled_workload]
38
- sampled_workload_save_file = workload_data/2020-09-13_202209.011708-2020-09-13_202239.011973.pkl
37
+ [my-workload]
38
+ data_load_command = /usr/pgsql-12/bin/pgbench -i -s 10 tpcc
39
+ run_workload_command = /usr/pgsql-12/bin/pgbench tpcc -T 1200
40
+
41
+ [sampled-workload]
39
42
# File saved using workload_sampler.py
43
+ sampled_workload_save_file = workload_data/2020-09-13_202209.011708-2020-09-13_202239.011973.pkl
44
+
45
+ [workload-sampling]
46
+ workload_sampling_time_second = 30
47
+ # Time (in seconds) to sample the workload running on the database in the [PostgreSQL] section
48
+ my_workload_save_dir = ./workload_data/ # workload save directory
49
+ # Database settings to temporarily store workload information
50
+ pghost = localhost # PostgreSQL server host
51
+ pgport = 5432 # PostgreSQL server port
52
+ pguser = postgres # PostgreSQL user name(Database user)
53
+ pgpassword = postgres12 # PostgreSQL user password(Database user)
54
+ pgdatabase = sampling # PostgreSQL Database
40
55
56
+ ##### Experimental settings
41
57
[pgbench]
42
58
scale_factor = 10 # pgbench scale factor
43
59
clients = 10 # Number of clients
@@ -60,13 +76,3 @@ sql_key = Q1.1, Q2.1, Q3.1
60
76
# Please specify the name of the file in pgopttune/workload/star_schema_sql/ directory(sql_file_path parameter diretory)
61
77
# (e.g., Q1.1,Q2,1).
62
78
63
- [workload-sampling]
64
- workload_sampling_time_second = 30
65
- # Time (in seconds) to sample the workload running on the database in the [PostgreSQL] section
66
- my_workload_save_dir = ./workload_data/ # workload save directory
67
- # Database settings to temporarily store workload information
68
- pghost = localhost # PostgreSQL server host
69
- pgport = 5432 # PostgreSQL server port
70
- pguser = postgres # PostgreSQL user name(Database user)
71
- pgpassword = postgres12 # PostgreSQL user password(Database user)
72
- pgdatabase = sampling # PostgreSQL Database
0 commit comments