Redis Persistence mode

Source: Internet
Author: User

The Redis storage is divided into memory storage, disk storage, and log files, which are configured with three parameters in the configuration file.

Save seconds Updates,save Configuration, indicates how many times the update operation has been synchronized to the data file. This can be a combination of multiple conditions, such as the default configuration file settings, set three conditions.

appendonly Yes/no ,appendonly configuration, indicates whether logging occurs after each update operation and, if not turned on, may result in data loss over a period of time when power is lost. Because the Redis itself synchronizes data files in sync with the save conditions above, some data will only exist in memory for a period of time.

Appendfsync no/always/everysec ,appendfsync configuration,no Indicates that the data cache is synchronized to disk by the operating system, always means that the data is written to disk by manually calling Fsync() After each update operation, andeverysec means synchronizing once per second.

See also: http://www.cnblogs.com/shanyou/archive/2012/01/28/2330451.html

Using "Sentinel" mechanism to monitor the master-slave server for automatic switching

Redis Persistence mode

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.