I'm working on implementing the master slave using sentinels in Redis with spring boot application. And while creating the JedisSentinelPool using sentinels I'm getting the following error
Cannot get master address from sentinel running @myIpaddress:6379
Below is the code.
final String MASTER_NAME = "mymaster";
final String PASSWORD = "empower";
final Set sentinels;
sentinels = new HashSet();
sentinels.add("127.0.0.1:6379");
sentinels.add("127.0.0.1:2222");
sentinels.add("127.0.0.1:3333");
JedisSentinelPool pool = new JedisSentinelPool(MASTER_NAME, sentinels);
My question is how do I run the sentinels and how do I fix this issue. Any kind of help is appreciated.
Thanks in advance.