configuration of Aof appendonly no#whether to turn on the AOF log featureAppendfsync always#every 1 commands are synchronized to aof immediately. Safe, slowAppendfsync everysec#compromise, write 1 times per secondAppendfsync No#write work to the operating system, the operating system to determine the size of the buffer, unified write to aof. Low synchronization frequency, fast speed,No-appendfsync-on-rewrite Yes:#During the process of exporting an RDB snapshot, you do not want to stop the synchronization aofAuto-aof-rewrite-percentage 100#aof file size compared to the size of the last rewrite, when the growth rate is 100%, overrideauto-aof-rewrite-min-size 64MB#aof file, at least 64M, overridesNote: In the dump RDB process, aof if the synchronization is stopped, will it be lost?Answer: No, all operations are cached in the memory queue, and after the dump is complete, the operation is unified.Note: What does aof rewrite mean?Answer: AoF rewrite refers to the data in memory, inverted into a command, written to the. AoF log.to solve the problem of aof log too large.Ask: If the Rdb file, and the AoF file are present, who would prefer to recover the data?Answer:AoF asked: Can 2 types be used simultaneously?AnswerCanand it's recommended to ask.:when recovering an RDB and aof which recovery quick answer: RDB is fast because it is a memory map of data, loaded directly into memory, and AOF is a command that needs to be executed
Redis's aof log persistence