| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- # Redis Configuration for Production
- # Network
- bind 0.0.0.0
- port 6379
- timeout 300
- tcp-keepalive 60
- # General
- daemonize no
- supervised no
- pidfile /var/run/redis/redis-server.pid
- loglevel notice
- logfile ""
- # Snapshotting
- save 900 1
- save 300 10
- save 60 10000
- stop-writes-on-bgsave-error yes
- rdbcompression yes
- rdbchecksum yes
- dbfilename dump.rdb
- dir /data
- # Append Only File
- 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
- # Memory Management
- maxmemory 256mb
- maxmemory-policy allkeys-lru
- # Security
- # requirepass your_redis_password_here
- # Clients
- maxclients 10000
- # Slow Log
- slowlog-log-slower-than 10000
- slowlog-max-len 128
- # Advanced Config
- 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
|