Understanding Redis cluster setting cluster-require-full-coverage

662 views
Skip to first unread message

Wei Si

unread,
May 20, 2021, 7:08:44 AM5/20/21
to Redis DB
Hi,

I'm new to Redis cluster and trying to understand the cluster-require-full-coverage flag:

If this is set to yes, as it is by default, the cluster stops accepting writes if some percentage of the key space is not covered by any node. If the option is set to no, the cluster will still serve queries even if only requests about a subset of keys can be processed. (from tutorial)

It looks to me that it's more desirable to set cluster-require-full-coverage to no so that clients can continue to write to available shards in case of node failures that cause slots not being covered. Are there any scenarios that benefit from cluster-require-full-coverage=yes?

Thanks!

Wei Si

Tuco

unread,
May 21, 2021, 1:09:30 PM5/21/21
to Redis DB
setting it to 'yes' gives you an indication that something is wrong with your cluster, and needs to be fixed immediately.  If you set it to 'no', it's possible that only some clients are affected, no alert is generated and the issue will go undetected for longer time. In system design, such a philosophy is called 'fail fast philosophy', see here.

Wei Si

unread,
Jun 3, 2021, 4:25:14 PM6/3/21
to Redis DB
That makes sense, thanks a lot for the response!
Reply all
Reply to author
Forward
0 new messages