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