redis.conf 726 B

1234567891011121314151617181920212223242526
  1. # redis端口
  2. port 6380
  3. # 关闭保护模式
  4. protected-mode no
  5. # 开启集群
  6. cluster-enabled yes
  7. # 集群节点配置
  8. cluster-config-file nodes.conf
  9. # 超时
  10. cluster-node-timeout 5000
  11. # 集群节点IP host模式为宿主机IP
  12. cluster-announce-ip 10.211.55.5
  13. # 集群节点端口
  14. cluster-announce-port 6380
  15. cluster-announce-bus-port 16380
  16. # 开启 appendonly 备份模式
  17. appendonly yes
  18. # 每秒钟备份
  19. appendfsync everysec
  20. # 对aof文件进行压缩时,是否执行同步操作
  21. no-appendfsync-on-rewrite no
  22. # 当目前aof文件大小超过上一次重写时的aof文件大小的100%时会再次进行重写
  23. auto-aof-rewrite-percentage 100
  24. # 重写前AOF文件的大小最小值 默认 64mb
  25. auto-aof-rewrite-min-size 64mb