# It is possible for a master to stop accepting writes if there are less than
# N replicas connected, having a lag less or equal than M seconds.
is it wrong for 'having a lag less or equal than M seconds' in redis.conf?
is it should be 'having a lag bigger than M seconds' ???
Comment From: trevor211
Good replicas should have a lag less than or equal to M(min-replicas-max-lag) seconds. If good replicas are less than N(min-replicas-to-write),master would stop accepting writes.
For good replicas refreshment, refer to https://github.com/redis/redis/blob/b002d2b4f1415f4db805081bc8f5b85d00f30e33/src/replication.c#L2879-L2896
For the judge, refer to https://github.com/redis/redis/blob/b002d2b4f1415f4db805081bc8f5b85d00f30e33/src/server.c#L3744-L3752
So, it's ok for the meaning of current redis.conf except the grammar.
Comment From: oranagra
thanks @trevor211 @monkeycode0 feel free to re-open or respond if you have further questions or suggestions.