redis配置文件优化


redis安装
redis配置文件优化


daemonize yes
tcp-backlog 511
loglevel notice
logfile /7000/log/redis.log
pidfile /7000/data/redis.pid
timeout 0
tcp-keepalive 0
databases 16
dir /7000/data
slave-serve-stale-data yes
slave-read-only yes
repl-disable-tcp-nodelay yes
slave-priority 100
appendonly yes
appendfsync everysec
no-appendfsync-on-rewrite yes
auto-aof-rewrite-min-size 64mb
lua-time-limit 5000
cluster-enabled yes
cluster-node-timeout 15000
cluster-migration-barrier 1
slowlog-log-slower-than 10000
slowlog-max-len 128
notify-keyspace-events ""
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 128
zset-max-ziplist-value 64
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
port 7000
maxmemory 512m
maxmemory-policy allkeys-lru
appendfilename "appendonly-7000.aof"
dbfilename dump-7000.rdb
cluster-config-file /7000/config/cluster-nodes-7000.conf
auto-aof-rewrite-percentage 80-100


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM