forked from DiceDB/dice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dice.toml
53 lines (44 loc) · 916 Bytes
/
dice.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Dice configuration file example.
#
# Note that in order to read the configuration file, Dice must be
# started with the c flag and file path as first argument:
#
# go run main.go -c /path/to/dice.toml
Version = '0.0.5'
InstanceID = ''
[AsyncServer]
Addr = '0.0.0.0'
Port = 7379
KeepAlive = 300
Timeout = 300
MaxConn = 0
[HTTP]
Enabled = true
Port = 8082
[WebSocket]
Enabled = true
Port = 8379
[Performance]
WatchChanBufSize = 20000
ShardCronFrequency = 1000000000
MultiplexerPollTimeout = 100000000
MaxClients = 20000
EnableMultiThreading = false
StoreMapInitSize = 1024000
AdhocReqChanBufSize = 20
[Memory]
MaxMemory = 0
EvictionPolicy = 'allkeys-lfu'
EvictionRatio = 0.1
KeysLimit = 200000000
LFULogFactor = 10
[Persistence]
AOFFile = './dice-master.aof'
PersistenceEnabled = true
WriteAOFOnCleanup = false
[Auth]
UserName = 'dice'
Password = ''
[Network]
IOBufferLength = 512
IOBufferLengthMAX = 51200