The Rdb snapshot persistence of one-to-one Redis

Source: Internet
Author: User

One: Redis persistent configuration
Redis persistence in 2 ways [snapshot, log] II: Configuration options for RDB snapshots Save900 1//900, 1 writes, resulting in a snapshotSave 300 1000//If there are 1000 writes in 300 seconds, a snapshot is generatedSave 60 10000//If there are 10,000 writes in 60 seconds, a snapshot is generated(These 3 options are masked,the RDB is disabled)
Three: redis.conf the meaning of the parameter in the configuration file stop-writes-on-bgsave-error Yes//when the background backup process fails, does the main process stop writing?Rdbcompression Yes//whether the exported Rdb file is compressedRdbchecksum Yes//to verify the integrity of the RDB when importing RBD recovery dataDbfilename Dump.rdb//the Rdb file name that is being directed outdir.///placement path for an RDB

IV: Advantages and disadvantages of RDB

Advantages: Fast Speed
Cons: Easy data loss

Five: Test Write

./bin/redis-benchmark-n 10000

The Rdb snapshot persistence of one-to-one Redis

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.