Redis Persistent Rdb Snapshot persistence

Source: Internet
Author: User

Explanation 1: Although Redis is a single process, it has a separate sub-process for RDB operations, in order to ensure the consistency of the data, when the RDB operation fails, the main process stops writing

That's why stop-write-on-bgsave-error this order.

How do I stop an RDB?

Answer: The following three parameters will be masked out of the line

Getting Started with an RDB    

First step: To modify the configuration file to allow 60 seconds to write 3,000 seconds to save the snapshot

      

Step Two: Kill Redis restart Redis with the latest configuration files

      

      

Step three: Use Redis's own test tools for more than 3,000 writes

      

Fourth step: Check the execution directory to generate a dump. RDB file

      

Fifth step: If you kill Redis directly

Pkill-9 Redis

And then reboot,

The data previously triggered by the RDB is still there, but there is still some missing data that does not trigger the snapshot

The advantage is that because snapshot import is very fast,

The disadvantage is that there will be data loss

      

          

Redis Persistent Rdb Snapshot 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.