-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathredis-ctrip.conf
96 lines (85 loc) · 1.98 KB
/
redis-ctrip.conf
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
#Redis configuration file
##base config
daemonize no
pidfile "/var/run/redis6379.pid"
port 6379
tcp-backlog 1024
timeout 300
tcp-keepalive 60
loglevel notice
logfile "/opt/logs/redis/notice6379.log"
databases 500
#snapshot
#snapshot
#save 900 1
#save 60 100000
#stop-writes-on-bgsave-error yes
#rdbcompression yes
#rdbchecksum yes
dbfilename "dump6379.rdb"
dir "/opt/app/redis/data"
#replication
slave-serve-stale-data yes
slave-read-only yes
repl-ping-slave-period 10
repl-timeout 600
repl-disable-tcp-nodelay no
repl-backlog-size 512mb
repl-backlog-ttl 3600
slave-priority 100
min-slaves-to-write 0
min-slaves-max-lag 10
repl-diskless-sync yes
repl-diskless-sync-delay 3
rdbcompression no
protected-mode no
##security
#rename-command shutdown credis_shutdown
#rename-command flushall credis_flushall
#rename-command flushdb credis_flushdb
#rename-command debug credis_debug
#rename-command keys credis_keys
#rename-command module ''
#rename-command save credis_save
#rename-command bgsave credis_bgsave
##limits
maxclients 10000
maxmemory 10gb
maxmemory-policy volatile-lru
#maxmemory-samples 3
##aof
appendonly no
#appendfilename "appendonly.aof"
#appendfsync always
appendfsync everysec
#appendfsync no
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
##lua script
lua-time-limit 5000
##slow log
slowlog-log-slower-than 10000
slowlog-max-len 10240
##event notification
notify-keyspace-events ""
##advanced config
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 4gb 0 0
client-output-buffer-limit pubsub 32mb 8mb 60
hz 100
aof-rewrite-incremental-fsync yes
loadmodule /opt/app/redis/sbin/crdt.so
crdt-gid "default" 1
#cluster-enabled yes
#cluster-config-file "nodes-6379.conf"
#cluster-node-timeout 15000
#cluster-migration-barrier 1