I have a Redis cluster with 1 master(ip: 192.168.56.101) and 2 slaves(ip: 192.168.56.102, 192.168.56.103), I use jedis to connect to master read and write data.
JedisPool pool = new JedisPool(new JedisPoolConfig(), "192.168.56.101");
One day, my master node die, so jedis can not connect to cluster. Could you please help me, how to connect cluster if the host connect died? Thank you