forked from vedanthh/TPC-DS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtpcds_variables.sh
78 lines (64 loc) · 2.32 KB
/
tpcds_variables.sh
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Environment options
export ADMIN_USER="gpadmin"
export BENCH_ROLE="dsbench"
export SCHEMA_NAME="tpcds"
export GREENPLUM_PATH=$GPHOME/greenplum_path.sh
# Set chip type to arm or x86 to avoid compiling TPC-DS tools from source code.
export CHIP_TYPE="arm"
# Default port used is configed via env setting of $PGPORT for user $ADMIN_USER
# Confige the port to connect for miltiuser test if you want to use connection pools.
export PSQL_OPTIONS="-p 5432"
# benchmark options
export GEN_DATA_SCALE="1"
export MULTI_USER_COUNT="2"
# step options
# step 00_compile_tpcds
export RUN_COMPILE_TPCDS="true"
# step 01_gen_data
# To run another TPC-DS with a different BENCH_ROLE using existing tables and data
# the queries need to be regenerated with the new role
# change BENCH_ROLE and set RUN_GEN_DATA to true and GEN_NEW_DATA to false
# GEN_NEW_DATA only takes affect when RUN_GEN_DATA is true, and the default setting
# should true under normal circumstances
export RUN_GEN_DATA="true"
export GEN_NEW_DATA="true"
# step 02_init
export RUN_INIT="true"
# set this to true if binary location changed
export RESET_ENV_ON_SEGMENT='false'
# step 03_ddl
# To run another TPC-DS with a different BENCH_ROLE using existing tables and data
# change BENCH_ROLE and set RUN_DDL to true and DROP_EXISTING_TABLES to false
# DROP_EXISTING_TABLES only takes affect when RUN_DDL is true, and the default setting
# should true under normal circumstances
export RUN_DDL="true"
export DROP_EXISTING_TABLES="true"
# step 04_load
export RUN_LOAD="true"
# step 05_sql
export RUN_SQL="true"
export RUN_ANALYZE="true"
#set wait time between each query execution
export QUERY_INTERVAL="1"
#Set to 1 if you want to stop when error occurs
export ON_ERROR_STOP="0"
# step 06_single_user_reports
export RUN_SINGLE_USER_REPORTS="true"
# step 07_multi_user
export RUN_MULTI_USER="false"
export RUN_QGEN="true"
# step 08_multi_user_reports
export RUN_MULTI_USER_REPORTS="false"
# step 09_score
export RUN_SCORE="false"
# misc options
export SINGLE_USER_ITERATIONS="1"
export EXPLAIN_ANALYZE="false"
export RANDOM_DISTRIBUTION="false"
export STATEMENT_MEM="2GB"
export STATEMENT_MEM_MULTI_USER="1GB"
# Set gpfdist location where gpfdist will run p (primary) or m (mirror)
export GPFDIST_LOCATION="p"
export OSVERSION=$(uname)
export MASTER_HOST=$(hostname -s)
export LD_PRELOAD=/lib64/libz.so.1 ps