Created
March 19, 2011 19:59
-
-
Save vincentchu/877761 to your computer and use it in GitHub Desktop.
Redis Conf
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
daemonize yes | |
pidfile /var/run/redis.pid | |
port 6379 | |
timeout 30 | |
loglevel notice | |
logfile /var/log/redis/redis-server.log | |
databases 16 | |
################################ SNAPSHOTTING ################################# | |
save 300 1000 | |
save 60 10000 | |
rdbcompression yes | |
dbfilename dump.rdb | |
dir /srv/redis/data | |
################################# REPLICATION ################################# | |
slave-serve-stale-data yes | |
################################## SECURITY ################################### | |
# No configuration | |
################################### LIMITS #################################### | |
maxmemory-policy allkeys-lru | |
maxmemory-samples 10 | |
############################## APPEND ONLY MODE ############################### | |
appendonly no | |
appendfsync no | |
no-appendfsync-on-rewrite yes | |
################################ VIRTUAL MEMORY ############################### | |
vm-enabled yes | |
vm-swap-file /srv/redis/data/redis.swap | |
vm-max-memory 3221225472 | |
vm-page-size 512 | |
vm-pages 134217728 | |
vm-max-threads 8 | |
############################### ADVANCED CONFIG ############################### | |
hash-max-zipmap-entries 512 | |
hash-max-zipmap-value 64 | |
list-max-ziplist-entries 512 | |
list-max-ziplist-value 64 | |
set-max-intset-entries 512 | |
activerehashing yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment