redis的永久化設置AOF的永久化配置和設置

AOF的永久化配置和設置

 

appendonly no #是否僅要日誌

appendfsync no # 系統緩衝,統一寫,速度快

appendfsync always # 系統不緩衝,直接寫,慢,丟失數據少

appendfsync everysec #折衷,每秒寫1次

no-appendfsync-on-rewrite no #重寫aof時同步最新數據

auto-AOF-rewrite-percentage 100 當前aof文件是上次重寫是大N%時重寫

auto-AOF-rewrite-min-size 64mb aof重寫至少要達到的大小

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章