forked from Percona-QA/pxc-qa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
32 lines (30 loc) · 1.58 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import configparser
# Reading initial configuration
config = configparser.ConfigParser()
config.read('config.ini')
WORKDIR = config['config']['workdir']
BASEDIR = config['config']['basedir']
SERVER = config['config']['server']
NODE = config['config']['node']
USER = config['config']['user']
PS1_SOCKET = config['config']['ps1_socket']
PS2_SOCKET = config['config']['ps2_socket']
PS3_SOCKET = config['config']['ps3_socket']
PT_BASEDIR = config['config']['pt_basedir']
PSTRESS_BIN = config['config']['pstress_bin']
PSTRESS_GRAMMAR_FILE = config['config']['pstress_grammar_file']
SYSBENCH_USER = config['sysbench']['sysbench_user']
SYSBENCH_PASS = config['sysbench']['sysbench_pass']
SYSBENCH_DB = config['sysbench']['sysbench_db']
SYSBENCH_TABLE_COUNT = config['sysbench']['sysbench_table_count']
SYSBENCH_THREADS = config['sysbench']['sysbench_threads']
SYSBENCH_NORMAL_TABLE_SIZE = config['sysbench']['sysbench_normal_table_size']
SYSBENCH_RUN_TIME = config['sysbench']['sysbench_run_time']
SYSBENCH_LOAD_TEST_TABLE_SIZE = config['sysbench']['sysbench_load_test_table_size']
SYSBENCH_RANDOM_LOAD_TABLE_SIZE = config['sysbench']['sysbench_random_load_table_size']
SYSBENCH_RANDOM_LOAD_RUN_TIME = config['sysbench']['sysbench_random_load_run_time']
SYSBENCH_OLTP_TEST_TABLE_SIZE = config['sysbench']['sysbench_oltp_test_table_size']
SYSBENCH_READ_QA_TABLE_SIZE = config['sysbench']['sysbench_read_qa_table_size']
SYSBENCH_CUSTOMIZED_DATALOAD_TABLE_SIZE = config['sysbench']['sysbench_customized_dataload_table_size']
PXC_LOWER_BASE = config['upgrade']['pxc_lower_base']
PXC_UPPER_BASE = config['upgrade']['pxc_upper_base']