Created
January 9, 2014 20:50
-
-
Save jmherbst/8341740 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appendonly no | |
appendfsync everysec | |
daemonize yes | |
databases 16 | |
dbfilename master.rdb | |
dir /var/lib/redis | |
bind 0.0.0.0 | |
port 6379 | |
logfile "/var/log/redis/redis1.log" | |
loglevel debug | |
pidfile /var/run/redis.pid | |
rdbcompression yes | |
timeout 300 | |
save 900 1 | |
save 300 10 | |
save 60 10000 | |
activerehashing yes | |
slowlog-log-slower-than 10000 | |
slowlog-max-len 1024 | |
maxmemory-samples 3 | |
no-appendfsync-on-rewrite no | |
list-max-ziplist-entries 512 | |
list-max-ziplist-value 64 | |
set-max-intset-entries 512 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appendonly no | |
appendfsync everysec | |
daemonize yes | |
databases 16 | |
dbfilename slave.rdb | |
dir /var/lib/redis | |
bind 0.0.0.0 | |
port 6380 | |
logfile "/var/log/redis/redis2.log" | |
loglevel debug | |
pidfile /var/run/redis_slave.pid | |
rdbcompression yes | |
timeout 300 | |
save 900 1 | |
save 300 10 | |
save 60 10000 | |
activerehashing yes | |
slowlog-log-slower-than 10000 | |
slowlog-max-len 1024 | |
maxmemory-samples 3 | |
no-appendfsync-on-rewrite no | |
list-max-ziplist-entries 512 | |
list-max-ziplist-value 64 | |
set-max-intset-entries 512 | |
slaveof 127.0.0.1 6379 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sentinel monitor redis1 127.0.0.1 6379 1 | |
sentinel down-after-milliseconds redis1 10000 | |
sentinel failover-timeout redis1 10000 | |
sentinel parallel-syncs redis1 1 | |
daemonize yes | |
logfile "/var/log/redis/sentinel.log" | |
loglevel warning |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment