首页 > 其他 > 详细

redis配置文件优化

时间:2019-04-04 11:08:20      阅读:194      评论:0      收藏:0      [点我收藏+]

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

redis配置文件优化

原文:https://www.cnblogs.com/sunshinea121/p/10653620.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!