-
Notifications
You must be signed in to change notification settings - Fork 6
/
etcd_dcompact.yaml
338 lines (338 loc) · 11.6 KB
/
etcd_dcompact.yaml
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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
http:
document_root: "/nvme-shared/strings"
listening_ports: '2011'
setenv:
TerarkZipTable_nltBuildThreads: 16
DictZipBlobStore_zipThreads: 32
StrSimpleEnvNameNotOverwrite: StringValue
IntSimpleEnvNameNotOverwrite: 16384
OverwriteThisEnv:
#comment": overwrite is default to false
overwrite: true
value: force overwrite this env by overwrite true
AnyPlugin:
db_bench_key_coder:
class: DbBenchUserKeyCoder
params:
prefix_len: 0
key_len: 16
Statistics:
stat-strings:
class: default
params:
discard_tickers:
#comment: 可以仅指定前缀,必须是以 . 为边界的前缀,例如下面两个必须分别指定
- rocksdb.block.cache
- rocksdb.block.cachecompressed
# comment: 上面两个也可以用下面这一个概括
- rocksdb.block
# 精确指定
- rocksdb.memtable.payload.bytes.at.flush
- rocksdb.memtable.garbage.bytes.at.flush
# pika 未使用 txn
- rocksdb.txn
- rocksdb.blobdb
- rocksdb.row.cache
- rocksdb.number.block
- rocksdb.bloom.filter
- rocksdb.persistent
- rocksdb.sim.block.cache
discard_histograms:
# comment: ....
- rocksdb.blobdb
- rocksdb.bytes.compressed
- rocksdb.bytes.decompressed
- rocksdb.num.index.and.filter.blocks.read.per.level
- rocksdb.num.data.blocks.read.per.level
- rocksdb.compression.times.nanos
- rocksdb.decompression.times.nanos
- rocksdb.read.block.get.micros
- rocksdb.write.raw.block.micros
# comment end of array
stats_level: kAll
MemTableRepFactory:
cspp:
class: cspp
params:
mem_cap: 8G
use_vm: false
token_use_idle: true
skiplist:
class: SkipList
params:
lookahead: 0
TableFactory:
fast:
class: ToplingFastTable
params:
indexType: MainPatricia
warmupLevel: kValue
writeMethod: kToplingFileWrite
fileWriteBufferSize: 128K
useFilePreallocation: true
keyPrefixLen: 0
zip:
class: ToplingZipTable
params:
localTempDir: "/dev/shm"
indexNestLevel: 3
indexNestScale: 8
indexTempLevel: 0
indexCacheRatio: 0
#warmupLevel: kIndex
warmupLevel: kValue
compressGlobalDict: false
optimizeCpuL3Cache: true
enableEntropyStore: false
offsetArrayBlockUnits: 128
sampleRatio: 0.001
checksumLevel: 0
entropyAlgo: kNoEntropy
debugLevel: 0
minDictZipValueSize: '30'
keyPrefixLen: 0
minPreadLen: -1
dispatch:
class: DispatcherTable
params:
default: fast
readers:
ToplingFastTable: fast
ToplingZipTable: zip
level_writers:
- fast
- fast
- zip
- zip
- zip
- zip
- zip
- zip
CompactionExecutorFactory:
dcompact:
class: DcompactEtcd
params:
# etcd is optional, at the beginning, we use etcd as a reliable long-connection
# for event passing, then we found there is a serious bug when using etcd with
# tls, then we downgrade etcd as an optional component
etcd:
url: 192.168.100.100:2379
#ca: root CA file for SSL/TLS, can not be empty, if ca is not present, try username/password
#cert: cert chain file for SSL/TLS, can be empty
#key: private key file for SSL/TLS, can be empty
#username": leipeng
#password": topling@123
load_balancer: round_robin
"etcd_root": "/dcompact-worker-cluster-1"
hoster_root: "/nvme-shared/strings"
instance_name: strings
nfs_mnt_src: ":/nvme-shared"
nfs_mnt_opt: nolock,addr=192.168.31.16
timeout: 6
web_domain: topling.in
http_max_retry: 9
http_workers:
- url: http://192.168.100.101:8080
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.101:8081
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.102:8080
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.102:8081
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.103:8080
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.103:8081
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.104:8080
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.104:8081
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.105:8080
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.105:8081
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.106:8080
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.106:8081
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.107:8080
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.107:8081
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.108:8080
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.108:8081
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.109:8080
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.109:8081
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.110:8080
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.110:8081
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.111:8080
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.111:8081
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.112:8080
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: http://192.168.100.112:8081
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.113:8080"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.113:8081"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.114:8080"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.114:8081"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.115:8080"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.115:8081"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.116:8080"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.116:8081"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.117:8080"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.117:8081"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.118:8080"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.118:8081"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.119:8080"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.119:8081"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.120:8080"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.120:8081"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.121:8080"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.121:8081"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.122:8080"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.122:8081"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.123:8080"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.123:8081"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.124:8080"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- url: "http://192.168.100.124:8081"
base_url: http://192.168.31.3:55071
web_url: http://dell3.topling.in:2011
- "//end_http_workers"
dcompact_min_level: 2
CFOptions:
default:
num_levels: 10
max_bytes_for_level_multiplier: 4
memtable_factory: "$cspp"
#memtable_factory: "$skiplist"
html_user_key_coder: "${db_bench_key_coder}"
max_write_buffer_number: 6
write_buffer_size: 3G
max_bytes_for_level_base: 512M
#max_compaction_bytes: 3G
target_file_size_base: 128M
target_file_size_multiplier: 2
table_factory: dispatch
level0_slowdown_writes_trigger: 20
level0_stop_writes_trigger: 36
level0_file_num_compaction_trigger: 4
soft_pending_compaction_bytes_limit: 1T
hard_pending_compaction_bytes_limit: 2T
compaction_executor_factory: dcompact
DBOptions:
db_opt:
create_if_missing: true
create_missing_column_families: true
db_paths:
- "/dev/shm/L0/strings"
- "/nvme-shared/strings"
allow_fdatasync: false
delayed_write_rate: 300M
writable_file_max_buffer_size: 128K
use_direct_io_for_flush_and_compaction: false
max_background_flushes: 4
max_background_compactions: 64
max_subcompactions: 1
max_level1_subcompactions: 11
inplace_update_support: false
WAL_size_limit_MB: 0
statistics: "${stat-strings}"
allow_mmap_writes: false
allow_mmap_reads: true
SstPartitionerFactory:
fixed-prefix:
class: SstPartitionerFixedPrefixFactory
params:
prefix_len: 4
databases:
strings:
method: DB::Open
params:
db_options: "$db_opt"
column_families:
default: "$default"
second: "$default"
#path: "/dev/shm/shared/strings"
path: "/nvme-shared/strings"
#path: "/dev/shm/db_dist_compact"
#path is optional, if not defined, use name as path
open: strings