Redis Enable persistence

Source: Internet
Author: User
Tags redis
The persistence of redis has two species of Rdb and aof.
RDB is a record of the operation over a period of time, a disk configuration is more than a period of time the operation of the persistence of more than a few times.
AOF enables you to persist each operation.
Here we use AOF.

Configuration, open the Redis configuration file. Find AppendOnly. The default is AppendOnly No. Change into appendonly yes.

and find Appendfsync.
The default is: # Appendfsync always #每次收到写命令就立即强制写入磁盘, slowest, but guaranteed to be completely persistent, not recommended for use with Appendfsync everysec #每秒钟强制写入磁盘一次, well done in terms of performance and persistence The compromise, recommended # Appendfsync No #完全依赖os, best performance, no guarantee of permanence
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.