-
Notifications
You must be signed in to change notification settings - Fork 6
/
lcompact_enterprise.yaml
171 lines (171 loc) · 4.35 KB
/
lcompact_enterprise.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
http:
# normally parent path of db path
document_root: /dev/shm/strings
listening_ports: '2011'
setenv:
DictZipBlobStore_zipThreads: 32
StrSimpleEnvNameNotOverwrite: StringValue
IntSimpleEnvNameNotOverwrite: 16384
OverwriteThisEnv:
#comment: overwrite is default to false
overwrite: true
value: force overwrite this env by overwrite true
Cache:
clock-cache-default:
class-needs-TBB: ClockCache
class: LRUCache
params:
capacity: 0
num_shard_bits: -1
strict_capacity_limit: false
metadata_charge_policy: kFullChargeCacheMetadata
lru_cache:
class: LRUCache
params:
capacity: 4G
num_shard_bits: -1
strict_capacity_limit: false
high_pri_pool_ratio: 0.5
use_adaptive_mutex: false
metadata_charge_policy: kFullChargeCacheMetadata
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: 2G
use_vm: false
token_use_idle: true
skiplist:
class: SkipList
params:
lookahead: 0
TableFactory:
fast:
class: SingleFastTable
params:
indexType: MainPatricia
keyPrefixLen: 0
zip:
class: ToplingZipTable
params:
localTempDir: /tmp
indexType: Mixed_XL_256_32_FL
indexNestLevel: 3
indexNestScale: 8
indexTempLevel: 0
indexCacheRatio: 0
warmupLevel: kIndex
compressGlobalDict: false
optimizeCpuL3Cache: true
enableEntropyStore: false
offsetArrayBlockUnits: 128
sampleRatio: 0.01
checksumLevel: 0
entropyAlgo: kNoEntropy
debugLevel: 0
softZipWorkingMemLimit: 16G
hardZipWorkingMemLimit: 32G
smallTaskMemory: 1G
minDictZipValueSize: '30'
keyPrefixLen: 0
minPreadLen: 64
bb:
class: BlockBasedTable
params:
checksum: kCRC32c
block_size: 4K
block_restart_interval: 16
index_block_restart_interval: 1
metadata_block_size: 4K
enable_index_compression: true
block_cache: "${lru_cache}"
block_cache_compressed:
persistent_cache:
filter_policy:
dispatch:
class: DispatcherTable
params:
default: fast
readers:
SingleFastTable: fast
ToplingZipTable: zip
BlockBasedTable: bb
level_writers:
- fast
- fast
- fast
- zip
- zip
- zip
- zip
- zip
- zip
CFOptions:
default:
max_write_buffer_number: 4
memtable_factory: "${cspp}"
write_buffer_size: 256M
target_file_size_base: 16M
target_file_size_multiplier: 2
table_factory: dispatch
level0_slowdown_writes_trigger: 20
level0_stop_writes_trigger: 36
level0_file_num_compaction_trigger: 4
ttl: 0
DBOptions:
dbo:
#bytes_per_sync: 2M
create_if_missing: true
create_missing_column_families: true
#db_paths: "/dev/shm/db_mcf"
max_background_compactions: 40
max_subcompactions: 1
max_level1_subcompactions: 7
inplace_update_support: false
WAL_size_limit_MB: 0
statistics: "${stat-strings}"
allow_mmap_reads: true
databases:
strings:
method: DB::Open
params:
db_options: "$dbo"
column_families:
default: "$default"
#path is optional, if not defined, use name as path
path: /dev/shm/strings
open: strings