-
Notifications
You must be signed in to change notification settings - Fork 6
/
lcompact_community.json
187 lines (187 loc) · 5.37 KB
/
lcompact_community.json
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
{
"http": {
"document_root": "/dev/shm",
"listening_ports": "8081"
},
"setenv": {
"DictZipBlobStore_zipThreads": 8,
"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",
"// 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",
"//stats_level": "kExceptDetailedTimers"
}
}
},
"FilterPolicy": {
"bloom_filter": {
"class": "BloomFilter",
"params": {
"bits_per_key": 10,
"use_block_based_builder": false
}
}
},
"MemTableRepFactory": {
"cspp": {
"class": "cspp",
"params": {
"mem_cap": "256M",
"use_vm": false,
"token_use_idle": true
}
},
"skiplist": {
"class": "SkipList",
"params": {
"lookahead": 0
}
}
},
"TableFactory": {
"bb": {
"class": "BlockBasedTable",
"params": {
"checksum": "kCRC32c",
"block_size": "4K",
"block_restart_interval": 16,
"index_block_restart_interval": 1,
"metadata_block_size": "4K",
"use_raw_size_as_estimated_file_size": true,
"enable_index_compression": true,
"block_cache": "${lru_cache}",
"block_cache_compressed": null,
"persistent_cache": null,
"filter_policy": "${bloom_filter}"
}
},
"dispatch": {
"class": "DispatcherTable",
"params": {
"default": "bb",
"readers": {
"BlockBasedTable": "bb"
},
"level_writers": ["bb", "bb", "bb", "bb", "bb", "bb", "bb", "bb", "bb"]
}
}
},
"CFOptions": {
"default": {
"max_write_buffer_number": 4,
"write_buffer_size": "128M",
"target_file_size_base": "16M",
"target_file_size_multiplier": 2,
"table_factory": "dispatch",
"memtable_factory": "$cspp",
"//memtable_factory": "$skiplist",
"compression_per_level": [
"kNoCompression",
"kNoCompression",
"kZSTD",
"kZSTD",
"kZSTD",
"kZSTD",
"kZSTD",
"kZSTD"
],
"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/strings",
"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": false
}
},
"databases": {
"strings": {
"method": "DB::Open",
"params": {
"db_options": "$dbo",
"column_families": {
"default": "$default"
},
"//comments": "//path is optional, if not defined, use name as path",
"path": "/dev/shm/strings"
}
}
},
"open": "strings"
}