Redis6生产配置
daemonize yes
pidfile "xxx/redis.pid"
tcp-backlog 511
timeout 0
tcp-keepalive 60
logfile "xxx/redis.log"
loglevel notice
databases 16
dir "xxx/data"
stop-writes-on-bgsave-error yes
repl-timeout 120
repl-ping-replica-period 10
repl-disable-tcp-nodelay no
repl-backlog-size 64mb
repl-backlog-ttl 7200
replica-serve-stale-data yes
replica-read-only no
replica-priority 100
lua-time-limit 5000
slowlog-log-slower-than 10000
slowlog-max-len 1000
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-entries 512
list-max-ziplist-value 64
set-max-intset-entries 512
zset-max-ziplist-entries 512
zset-max-ziplist-value 64
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit replica 2gb 1gb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
port 13980
maxmemory 1gb
maxmemory-policy allkeys-lru
appendonly no
appendfsync everysec
appendfilename "appendonly.aof"
dbfilename "dump.rdb"
aof-rewrite-incremental-fsync yes
no-appendfsync-on-rewrite yes
auto-aof-rewrite-min-size 62500kb
auto-aof-rewrite-percentage 0
rdbcompression yes
rdbchecksum yes
repl-diskless-sync no
repl-diskless-sync-delay 5
maxclients 10000
hll-sparse-max-bytes 3000
min-replicas-to-write 0
min-replicas-max-lag 10
aof-load-truncated yes
notify-keyspace-events ""
latency-monitor-threshold 100
lazyfree-lazy-eviction yes
lazyfree-lazy-expire yes
lazyfree-lazy-server-del yes
replica-lazy-flush no
aof-use-rdb-preamble no
client-query-buffer-limit 1gb
activedefrag yes
active-defrag-threshold-lower 10
active-defrag-threshold-upper 100
active-defrag-ignore-bytes 300mb
active-defrag-cycle-min 10
active-defrag-cycle-max 20
protected-mode no
lazyfree-lazy-user-del yes
active-defrag-max-scan-fields 1000
jemalloc-bg-thread no
dynamic-hz yes
proto-max-bulk-len 512mb
stream-node-max-bytes 4kb
stream-node-max-entries 100
io-threads 1
io-threads-do-reads no
active-expire-effort 2
loadmodule xxx.so
# Generated by CONFIG REWRITE
user default on nopass ~* +@all
replicaof xxx.xxx.xxx.xxx yyyyy