2014-08-07 12:49:48 +04:00
|
|
|
# LedisDB configuration
|
|
|
|
|
2014-08-08 03:45:34 +04:00
|
|
|
# Config format is toml, https://github.com/toml-lang/toml
|
|
|
|
|
2014-08-07 12:49:48 +04:00
|
|
|
# Server listen address
|
|
|
|
addr = "127.0.0.1:6380"
|
|
|
|
|
|
|
|
# Server http listen address, set empty to disable
|
|
|
|
http_addr = "127.0.0.1:11181"
|
|
|
|
|
|
|
|
# Data store path, all ledisdb's data will be saved here
|
|
|
|
data_dir = "/tmp/ledis_server"
|
|
|
|
|
|
|
|
# Log server command, set empty to disable
|
|
|
|
access_log = ""
|
|
|
|
|
|
|
|
# Set slaveof to enable replication from master, empty, no replication
|
|
|
|
slaveof = ""
|
|
|
|
|
|
|
|
# Choose which backend storage to use, now support:
|
|
|
|
#
|
|
|
|
# leveldb
|
|
|
|
# rocksdb
|
|
|
|
# goleveldb
|
|
|
|
# lmdb
|
|
|
|
# boltdb
|
2014-09-04 10:02:47 +04:00
|
|
|
# hyperleveldb
|
|
|
|
# memory
|
2014-08-07 12:49:48 +04:00
|
|
|
#
|
|
|
|
db_name = "leveldb"
|
|
|
|
|
|
|
|
[leveldb]
|
|
|
|
compression = false
|
|
|
|
block_size = 32768
|
|
|
|
write_buffer_size = 67108864
|
|
|
|
cache_size = 524288000
|
|
|
|
max_open_files = 1024
|
|
|
|
|
|
|
|
[lmdb]
|
|
|
|
map_size = 524288000
|
2014-08-15 06:46:48 +04:00
|
|
|
nosync = true
|
2014-08-07 12:49:48 +04:00
|
|
|
|
|
|
|
[binlog]
|
2014-08-08 03:45:34 +04:00
|
|
|
# Set either size or num to 0 to disable binlog
|
2014-08-07 12:49:48 +04:00
|
|
|
max_file_size = 0
|
|
|
|
max_file_num = 0
|
|
|
|
|
|
|
|
|