Hi All,
i have been recently using redis for my project. And used sentinel for HA. So typically i have 1 master and 2 slaves and have 3 sentinel with quorum 2.
while testing the master down scenario i got connection refused error as sentinel take some time to elect the new master. As load is high on redis, between this period many read/write operation happened resulting to connection object not available from jedissentinelpool object. To fix this, as suggested in the sentinel documentation i used teh below config
slaves-to-write 1
min-slaves-max-lag 10
Now the above issue i mentioned is fixed and the clients wait for the new master to get elected to perform any read/write operation.
But with this a new problem i faced is Redis: NOREPLICAS Not enough good slaves to write. The network i work in gets disconnected for some milliseconds resulting to slaves being disconnected from master and when any operations happened during this time throws me Redis: NOREPLICAS Not enough good slaves to write exception no slave is connected and i have put condition on master that 1 slave should be available when write opeartion happens.
please can anyone help me fix this issue?
Thanks,
Ranjit