Redis Master-slave replication

Source: Internet
Author: User

Master-slave replication


Redis Master-slave replication is very simple to configure and use, with master-slave replication allowing multiple slave servers (from the server) and master server (master server) to have the same database copy.



Features of Redis master-slave replication

1.Master can have multiple slave

2. Multiple slave can connect to the same master, and can also connect to other slave (when Master goes down, one of the master can immediately become host master)

3. Master-slave replication does not block master, while primary can continue to process client requests. (Does not affect client continuing to write data to master)

4. Improve the scalability of the system.



Redis master-slave replication process

1.slave Connect with master, send sync (sync command)

2.master initiates a background process, saves the database snapshot to a file, and the master master process starts collecting new write commands and caches.

3. After the background is finished saving, send this file to slave

4.slave Save this file to your hard disk.


Redis Master-slave replication

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.