Question
Redis automatic fail over for Pega Chat
I have setup redis in master-slave configuration and the replication works fine. Automatic CLUSTER FAILOVER TURNOVER is not enabled. Can anyone suggest how to make redis slave turnover to master automatically when master goes down?
In Pega Chat config.json file, we have provided redis master and slave hostnames. Once redis works with automatic cluster failover turnover, if redis master goes down and redis slave turns over to master, will pega chat work fine? Is there any configuration to be made to Chat for it to support redis automatic failover turnover?
We have fixed redis automatic failover using sentinel. Now we have 3 redis nodes (1 master and 2 slaves). When master goes down, sentinel will vote for one of the slave to become master. It works fine.
But Chat does not work with this configuration. Below is my config.json.
When one of these host goes down, chat stops.
"redis" : {
"master" : {
"host": "127.0.0.1"
},
"slave" : {
"host": "127.0.0.1"
}
},
1. How to make Chat work with redis failover?
2. How to include 1 master and 2 slaves to the config.json?
***Updated by moderator: Lochan to edit the IP addresses to the generic 127.0.01***