forked from redis/redis
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy patheru.conf
More file actions
54 lines (46 loc) · 1.14 KB
/
eru.conf
File metadata and controls
54 lines (46 loc) · 1.14 KB
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
maxmemory 1024m
maxmemory-policy allkeys-lru
maxmemory-samples 10
port 6379
appendfilename appendonly.aof
dbfilename dump.rdb
maxclients 50000
daemonize no
tcp-backlog 1024
tcp-keepalive 60
timeout 0
loglevel notice
databases 16
dir /var/lib/redis
slave-serve-stale-data yes
slave-read-only yes
# not use default
repl-disable-tcp-nodelay yes
slave-priority 100
# 在 Redis-Ctl 中会使用 --cluster-enabled yes 来打开集群模式
cluster-enabled no
cluster-config-file /var/lib/redis/nodes.conf
# 节点互连超时的阈值
cluster-node-timeout 15000
cluster-migration-barrier 1
slowlog-log-slower-than 10000
slowlog-max-len 128
notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-entries 512
list-max-ziplist-value 64
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit slave 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 15
# 在 Redis-Ctl 中会使用 --appendonly yes 来打开 AOF
appendonly no
save ""
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes