Skip to content

Instantly share code, notes, and snippets.

@davidcelis
Created June 26, 2011 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidcelis/1047923 to your computer and use it in GitHub Desktop.
Save davidcelis/1047923 to your computer and use it in GitHub Desktop.
redis.conf
daemonize yes
pidfile /var/run/redis.pid
logfile /var/log/redis.log
port 6379
bind 127.0.0.1
timeout 300
loglevel notice
## Default configuration options
databases 1
# save 900 1
# save 300 10
# save 60 10000
# rdbcompression yes
# dbfilename dump.rdb
dir /opt/redis/
appendonly yes
appendfilename appendonly.aof
appendfsync everysec
glueoutputbuf yes
vm-enabled yes
vm-swap-file /etc/redis/redis.swap
vm-max-memory 268435456
vm-page-size 32
vm-pages 134217728
vm-max-threads 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment