################################## NETWORK ##################################### bind 172.20.1.191 protected-mode yes port 6379 tcp-backlog 2048 timeout 0 tcp-keepalive 300 daemonize yes supervised no pidfile "/var/run/redis_6379.pid" loglevel notice logfile "/data/redis/logs/redis.log" databases 16 always-show-logo yes maxclients 10000 lua-time-limit 5000 slowlog-log-slower-than 100000 slowlog-max-len 1000 latency-monitor-threshold 0 ################################ 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/redis/rdb" rdb-save-incremental-fsync yes ################################# REPLICATION ################################# masterauth "a5791E2a3043T" replica-serve-stale-data yes replica-read-only yes repl-diskless-sync yes repl-diskless-sync-delay 5 repl-ping-replica-period 10 repl-timeout 60 repl-disable-tcp-nodelay no repl-backlog-size 100mb repl-backlog-ttl 1800 replica-priority 100 # min-replicas-to-write 3 # min-replicas-max-lag 10 # replica-announce-ip 5.5.5.5 # replica-announce-port 1234 ################################## SECURITY ################################### requirepass "a5791E2a3043T" rename-command FLUSHALL ADMINFLUSHALL rename-command FLUSHDB ADMINFLUSHDB #rename-command CONFIG ADMINCONFIG rename-command KEYS ADMINKEYS ############################## MEMORY MANAGEMENT ################################ maxmemory 7812500kb maxmemory-policy volatile-lfu maxmemory-samples 5 replica-ignore-maxmemory yes ############################# LAZY FREEING #################################### lazyfree-lazy-eviction yes lazyfree-lazy-expire yes lazyfree-lazy-server-del yes replica-lazy-flush yes ############################## APPEND ONLY MODE ############################### appendonly no # appendfilename "appendonly.aof" # appendfsync everysec # appendfsync no # no-appendfsync-on-rewrite no # auto-aof-rewrite-percentage 100 # auto-aof-rewrite-min-size 64mb # aof-load-truncated yes # aof-use-rdb-preamble yes # aof-rewrite-incremental-fsync yes ############################# EVENT NOTIFICATION ############################## notify-keyspace-events "" ############################### 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 stream-node-max-bytes 4096 stream-node-max-entries 100 activerehashing yes client-output-buffer-limit normal 0 0 0 client-output-buffer-limit replica 0 0 0 client-output-buffer-limit pubsub 32mb 8mb 60 hz 50 dynamic-hz yes ########################### ACTIVE DEFRAGMENTATION ####################### activedefrag yes active-defrag-ignore-bytes 1000000000 active-defrag-threshold-lower 10 active-defrag-threshold-upper 50 active-defrag-cycle-min 10 active-defrag-cycle-max 30 active-defrag-max-scan-fields 1000 # Generated by CONFIG REWRITE replicaof 172.20.1.192 6379