Hi, I run 2 redis nodes with sentinel in replica mode, when i stop master node my slave will promote to master but when i started the last master again sentinel doesnt return that redis to master mode... I want , when my last master get healthy, sentinel promote it as master again but it still is slave and last slave is master How can i tell sentinel to do this after a time? forexample when master become healthy after 3 minutes or immadiately promote the last master to master again?
Comment From: hwware
Hello, what you can do is manually failover the promoted slave, then the old master, if it is healthy, will be promoted to master by sentinel..please check SENTINEL FAILOVER command..
Comment From: hamidreza-hosseini
I want this promotion will happen automatically with Sentinel, NOT Manually... Can i configure this for automatic failover?
Comment From: hwware
Ok, Based on what I know there is no automatic way to config this in Redis side, but if you really expect this happen, you can do something extra for writing an extra process monitoring the previous master status, if it is online, then send the SENTINEL FAILOVER