# Redis configuration file for WordPress # Generated by Ansible # Network bind 127.0.0.1 port 6379 tcp-backlog 511 timeout 0 tcp-keepalive 300 # General daemonize yes supervised no pidfile /var/run/redis/redis-server.pid loglevel notice logfile /var/log/redis/redis-server.log databases 16 # Memory Management maxmemory {{ redis_maxmemory | default('128mb') }} maxmemory-policy allkeys-lru maxmemory-samples 5 # Persistence save 900 1 save 300 10 save 60 10000 stop-writes-on-bgsave-error yes rdbcompression yes rdbchecksum yes dbfilename dump.rdb dir /var/lib/redis # Security requirepass {{ redis_password | default('') }} # 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 # Client output buffer limits client-output-buffer-limit normal 0 0 0 client-output-buffer-limit replica 256mb 64mb 60 client-output-buffer-limit pubsub 32mb 8mb 60 # WordPress optimizations hz 10 dynamic-hz yes