Redis's aof log persistence

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.