Skip to content

Instantly share code, notes, and snippets.

@kylebrandt
Created May 20, 2016 16:31
Show Gist options
  • Save kylebrandt/3fdc97171b96ba46fd9e1d14abd03027 to your computer and use it in GitHub Desktop.
Save kylebrandt/3fdc97171b96ba46fd9e1d14abd03027 to your computer and use it in GitHub Desktop.
Redis Config, Version, Backup for Stack Overflow's Bosun Instance
0 * * * * cp -a /var/lib/redis/bosun-redis.rdb '/mnt/bosun_backup/bosun_redis_'$(date +\%Y-\%m-\%d-\%H).rdb && find '/mnt/bosun_backup/' -maxdepth 1 -name 'bosun_*.rdb' -ctime '+2' -delete
## Hmpf, ctime makes no since, just noticed, but whatever.
daemonize yes
pidfile /var/run/redis/redis-bosun.pid
port 6389
timeout 300
# scollector.group = bosun
loglevel notice
logfile /var/log/redis/redis-bosun.log
syslog-enabled yes
syslog-ident redis-bosun
syslog-facility local2
databases 1000
rdbcompression no
dbfilename bosun-redis.rdb
dir /var/lib/redis
appendonly yes
appendfsync everysec
activerehashing yes
client-output-buffer-limit slave 0 0 0
repl-backlog-size 256mb
repl-diskless-sync yes
save 900 1
redis-server --version
Redis server v=2.8.21 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=8d75f6055cd76ee7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment