Home  >  Article  >  Backend Development  >  Questions about redis master-slave configuration

Questions about redis master-slave configuration

WBOY
WBOYOriginal
2016-08-04 09:21:561267browse

The master-slave configuration of the two redis servers has been successful. I have a question, how to make the master server hang up and automatically access the slave redis. Is it through a program to determine whether the master server can be connected? If not, then access the slave server? Or other methods. In this case, the slave server should be configured with a password to connect, otherwise anyone can connect to the slave server's redis and cause damage

Reply content:

The master-slave configuration of the two redis servers was successful. I have a question, how to make the master server hang up and automatically access the slave redis. Is it through a program to determine whether the master server can be connected? If not, then access the slave server? Or other methods. In this case, the slave server should be configured with a password to connect, otherwise anyone can connect to the slave server's redis and cause damage

Search for redis sentinel
The master and slave will automatically switch

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn