Redis Open Persistence

Source: Internet
Author: User

The persistence of Redis has two types of RDB and aof.
An RDB is a record of operations over a period of time, and a set of configurations is persistent over many times over a period of time.
AoF can be persisted for each operation.
Here we use AOF.

Configuration, open the Redis configuration file. Find AppendOnly. The default is AppendOnly No. Change to appendonly yes.
and find Appendfsync.
The default is:

# Appendfsync always   #每次收到写命令就立即强制写入磁盘, slowest, but guaranteed full persistence, not recommended for Appendfsync everysec     #每秒钟强制写入磁盘一次, Good compromise in performance and persistence, recommended # Appendfsync no    #完全依赖os, best performance, no guarantee of durability

--The default is persisted per second.
-in fact, change the appendonly is OK.

Redis Open 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.