Redis: NOREPLICAS Not enough good slaves to write. Please help

3,688 views
Skip to first unread message

ranjit behura

unread,
May 16, 2016, 5:11:06 AM5/16/16
to Redis DB
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

Dongfang Xu

unread,
Mar 1, 2020, 10:05:05 PM3/1/20
to Redis DB
hi there, I am start to seeing this issue recently. Is this issue resolved after you fix network issue? 
Reply all
Reply to author
Forward
0 new messages