redis Aof 日志缓存

修改配置文件

1.appendonly no/yes是否开启

2.appendfsync aways  每个命令都同步到aof,安全,但是慢

3.appendfsync  everysec  折中方案 1秒写入一次

4.appendfsync no 由系统写入,同步平率低,速度快

5.no-appendfsync-on-rewrite no/yes  正在导出rdb快照要不要停止同步aof

6.auto-aof-rewrite-percentage 100  文件大小比起上次来重写时的大小,增长率100%时重写
7.auto-aof-rewrite-min-size 64mb  文件超过64m的时候重写

猜你喜欢

转载自www.cnblogs.com/linhuage520/p/11919710.html