1. 程式人生 > >redis叢集配置檔案備份

redis叢集配置檔案備份

bind 192.168.1.114
protected-mode no
port 6379
tcp-backlog 511
timeout 0
tcp-keepalive 0
daemonize yes
supervised no
pidfile /var/run/redis.pid
loglevel notice
logfile ""
databases 16
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir ./
slave-serve-stale-data yes
slave-read-only yes
repl-diskless-sync no
repl-diskless-sync-delay 5
repl-disable-tcp-nodelay no
slave-priority 100
appendonly yes
appendfilename "appendonly.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
lua-time-limit 5000
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-size -2
list-compress-depth 0
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
hll-sparse-max-bytes 3000
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 10
aof-rewrite-incremental-fsync yes

sentinel.conf配置
port 26379
dir "/tmp"
sentinel myid f38e5a06fcb4d44963348a010191087c91fb6c0f
sentinel monitor mymaster 192.168.1.114 6379 2
sentinel config-epoch mymaster 0
sentinel leader-epoch mymaster 0
protected-mode no
daemonize yes
# Generated by CONFIG REWRITE
sentinel known-slave mymaster 192.168.1.114 6579
sentinel known-slave mymaster 192.168.1.114 6479
sentinel known-sentinel mymaster 192.168.1.114 26579 0d3cc5b26d3e2f3f957b813536da2b0e7d04f0ba
sentinel known-sentinel mymaster 192.168.1.114 26479 3bda880f818c9e0a8100bc914d723f345337a004
sentinel current-epoch 0