Redis multi-host function Summary

Source: Internet
Author: User
Tags failover

1. Through the redis replication function, you can create any number of replicas of the specified server. Each replica server and the copied original server have the same data;

2. By distributing read requests to multiple slave servers, you can reduce the burden on the master server in processing read requests and improve the system's ability to process read requests;

3. In a system with both master and slave servers, when the slave server is offline, the system's ability to process read requests will decrease, but the entire system can still work normally; if the master server is deprecated, the system will not be able to process write requests, resulting in downtime;

4. By upgrading a slave server of the master server to the master server and switching other slave servers to a new master server, the system can return to the active state. This operation is called failover;

5. Sentinel can monitor any number of Master servers and all slave servers under the master server, and automatically perform failover when the monitored master server goes offline;

6. twemproxy is a proxy server that can add multiple redis servers to a server pool and forward the client-sent command requests to each server in the pool for processing, each server in the pool contains some data and processes some command requests. twemproxy allows you to specify the hash function, distribution function, and hash label by setting configuration options, in this way, different database keys are distributed to different servers. twemproxy allows you to set configuration options to enable twemproxy to take a server offline, automatically transfers the database keys that were originally handled by the deprecation server to other online servers in the pool for processing. You can also set a retry time so that twemproxy can, send a command request to the server that is offline again to check whether the server has been online again. If yes, twemproxy will re-submit the database key to the server for processing;

 

Redis multi-host function Summary

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.