This repository was archived by the owner on Sep 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 618
/
Copy pathsettings.h
250 lines (208 loc) · 8.14 KB
/
settings.h
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
//===----------------------------------------------------------------------===//
//
// Peloton
//
// configuration.h
//
// Identification: src/include/configuration/configuration.h
//
// Copyright (c) 2015-2017, Carnegie Mellon University Database Group
//
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
// FILE LOCATIONS
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
// CONNECTIONS
//===----------------------------------------------------------------------===//
// Peloton port
SETTING_int(port,
"Peloton port (default: 15721)",
15721,
1024, 65535,
false, false)
// Maximum number of connections
SETTING_int(max_connections,
"Maximum number of connections (default: 64)",
64,
1, 512,
true, true)
SETTING_int(rpc_port,
"Peloton rpc port (default: 15445)",
15445,
1024, 65535,
false, false)
// TODO(tianyu): Remove when we change to a different rpc framework
// This is here only because capnp cannot exit gracefully and thus causes
// test failure. This is an issue with the capnp implementation and has
// been such way for a while, so it's unlikely it gets fixed.
// See: https://groups.google.com/forum/#!topic/capnproto/bgxCdqGD6oE
SETTING_bool(rpc_enabled,
"Enable rpc, this should be turned off when testing",
false, false, false)
// Socket family
SETTING_string(socket_family,
"Socket family (default: AF_INET)",
"AF_INET",
false, false)
// Added for SSL only begins
// Enables SSL connection. The default value is false
SETTING_bool(ssl, "Enable SSL connection (default: true)", true, false, false)
// Peloton private key file
// Currently use hardcoded private key path, may need to change
// to generate file dynamically at runtime
// The same applies to certificate file
SETTING_string(private_key_file,
"path to private key file",
"peloton_insecure_server.key",
false, false)
// Peloton certificate file
SETTING_string(certificate_file,
"path to certificate file",
"peloton_insecure_server.crt",
false, false)
// Peloton root certificate file
SETTING_string(root_cert_file,
"path to root certificate file",
"root.crt",
false, false)
//===----------------------------------------------------------------------===//
// RESOURCE USAGE
//===----------------------------------------------------------------------===//
SETTING_double(bnlj_buffer_size,
"The default buffer size to use for blockwise nested loop joins (default: 1 MB)",
1.0 * 1024.0 * 1024.0,
1.0 * 1024,
1.0 * 1024.0 * 1024.0 * 1024,
true, true)
// Size of the MonoQueue task queue
SETTING_int(monoqueue_task_queue_size,
"MonoQueue Task Queue Size (default: 32)",
32,
8, 128,
false, false)
// Size of the MonoQueue worker pool
SETTING_int(monoqueue_worker_pool_size,
"MonoQueue Worker Pool Size (default: 4)",
4,
1, 32,
false, false)
// Number of connection threads used by peloton
SETTING_int(connection_thread_count,
"Number of connection threads (default: std::hardware_concurrency())",
std::thread::hardware_concurrency(),
1, 64,
false, false)
SETTING_int(gc_num_threads,
"The number of Garbage collection threads to run",
1,
1, 128,
true, true)
SETTING_bool(parallel_execution,
"Enable parallel execution of queries (default: true)",
true,
true, true)
SETTING_int(min_parallel_table_scan_size,
"Minimum number of tuples a table must have before we consider performing parallel scans (default: 10K)",
10 * 1000,
1, std::numeric_limits<int32_t>::max(),
true, true)
//===----------------------------------------------------------------------===//
// WRITE AHEAD LOG
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
// ERROR REPORTING AND LOGGING
//===----------------------------------------------------------------------===//
//===----------------------------------------------------------------------===//
// STATISTICS
//===----------------------------------------------------------------------===//
// Enable or disable statistics collection
SETTING_int(stats_mode,
"Enable statistics collection (default: 0)",
static_cast<int>(peloton::StatsType::INVALID),
0, 16,
true, true)
//===----------------------------------------------------------------------===//
// AI
//===----------------------------------------------------------------------===//
// Enable or disable index tuner
SETTING_bool(index_tuner,
"Enable index tuner (default: false)",
false,
true, true)
// Enable or disable layout tuner
SETTING_bool(layout_tuner,
"Enable layout tuner (default: false)",
false,
true, true)
//===----------------------------------------------------------------------===//
// BRAIN
//===----------------------------------------------------------------------===//
// Enable or disable brain
SETTING_bool(brain,
"Enable brain (default: false)",
false,
true, true)
SETTING_string(peloton_address,
"ip and port of the peloton rpc service, address:port",
"127.0.0.1:15445",
false, false)
// Size of the brain task queue
SETTING_int(brain_task_queue_size,
"Brain Task Queue Size (default: 32)",
32,
1, 128,
false, false)
// Size of the brain worker pool
SETTING_int(brain_worker_pool_size,
"Brain Worker Pool Size (default: 1)",
1,
1, 16,
false, false)
//===----------------------------------------------------------------------===//
// CODEGEN
//===----------------------------------------------------------------------===//
SETTING_bool(codegen,
"Enable code-generation for query execution (default: true)",
true,
true, true)
SETTING_bool(codegen_interpreter,
"Force interpretation of generated llvm code (default: false)",
false, true, true)
SETTING_bool(print_ir_stats,
"Print statistics on generated IR (default: false)",
false,
true, true)
SETTING_bool(dump_ir,
"Enable logging of all generated IR (default: false)",
false,
true, true)
SETTING_bool(zone_map,
"Enable zone map (default: false)",
false, false, false)
//===----------------------------------------------------------------------===//
// Optimizer
//===----------------------------------------------------------------------===//
SETTING_bool(predicate_push_down,
"Enable predicate push-down optimization (default: true)",
true,
true, true)
SETTING_bool(hash_join_bloom_filter,
"Enable bloom filter for hash join in codegen (default: false)",
false,
true, true)
SETTING_int(task_execution_timeout,
"Maximum allowed length of time (in ms) for task "
"execution step of optimizer, "
"assuming one plan has been found (default 5000)",
5000,
1000, 60000,
true, true)
//===----------------------------------------------------------------------===//
// GENERAL
//===----------------------------------------------------------------------===//
// Display configuration
SETTING_bool(display_settings,
"Display settings (default: false)",
false,
true, true)