-
Notifications
You must be signed in to change notification settings - Fork 6
/
lcompact_community.yaml
125 lines (125 loc) · 2.86 KB
/
lcompact_community.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
http:
# normally parent path of db path
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: 256G
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: default
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:
persistent_cache:
#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"
#path is optional, if not defined, use name as path
path: /dev/shm/strings
open: strings