forked from rosedblabs/rosedb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
36 lines (28 loc) · 908 Bytes
/
config.toml
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
# 服务器监听的地址
# Default rosedb server address and port.
addr = "127.0.0.1:5200"
# 数据库文件路径
# Default rosedb data dir: /tmp/rosedb_server.
# Do not use the default path before you use it in production.
dir_path = "/tmp/rosedb_server"
# 默认数据文件大小16MB
# Default db file size: 16MB.
block_size = 16777216
# 读写模式 0:FileIO 1:MMap
# DB file read and write method, 0:FileIO 1:MMap.
rw_method = 0
# 数据索引模式 0:键和值均存于内存中 1:只有键存于内存中
# The index mode, 0: KeyValueMemMode, 1: KeyOnlyMemMode.
idx_mode = 0
# key的最大值
# The max size of key: 128 bytes.
max_key_size = 128
# value的最大值
# The max size of value: 1MB.
max_value_size = 1048576
# 是否数据同步
# Flush the db file to disk of every write operation.
sync = false
# reclaim的阈值
# The threshold for db file reclaiming.
reclaim_threshold = 4