Home > Article > Backend Development > Questions about redis master-slave configuration
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
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