To manage the master-slave failover, redis has sentinel in hand. Two servers I am using. One for the Master server and the other for the slave. Both master and slave are remote server and running as a daemon. How to configure the sentinel with master and slave IP. Where the Sentinel needs to be run. How to run sentinel as a daemon.
For detail:
My master running in
Port: 6379
IP: 192.168.56.101
My slave running in
Port: 6379
IP: 192.168.56.102
My node is running in
IP: 192.168.0.140
Note : Redis servers are run in a virtual machine in windows. Where the node is also running locally on the same machine.
Update The documentation specifies the command to run Sentinel. My question is sentinel need to be run in my local machine or in the virtual machine where the master is running or as separate sentinel server. Like one redis-server for master and one for slave and another one for sentinel.?