Quick revision
The short answer
With cluster-require-full-coverage yes, the default, any node that sees a slot without a working owner stops serving every query, so losing one shard and its replica stopped the whole cluster. Setting it to no lets healthy primaries keep serving their slots while only keys on the lost shard fail, and cluster-allow-reads-when-down yes also allows reads while the cluster is marked down. The root cause was placement: a primary and its own replica must never share a host or zone.
What to remember
In this answer, we saw that cluster-require-full-coverage yes, the default, makes every node stop serving all keys when any slot lacks a working owner, so losing a primary together with its only replica stopped the whole cluster. Setting it to no lets healthy shards keep serving, and cluster-allow-reads-when-down yes adds reads during a down state for read-mostly data. The root cause was placing a primary and its replica on one host, so we spread them across hosts and zones, used replica migration as a safety net, tested host and zone loss, and alerted on cluster state, failed slots and placement.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
With cluster-require-full-coverage yes, the default, any node that sees a slot without a working owner stops serving every query, so losing one shard and its replica stopped the whole cluster. Setting it to no lets healthy primaries keep serving their slots while only keys on the lost shard fail, and cluster-allow-reads-when-down yes also allows reads while the cluster is marked down. The root cause was placement: a primary and its own replica must never share a host or zone.
Why this question is asked
This incident surprises people because Redis Cluster is supposed to contain failures: lose one shard out of five and lose a fifth of the keys, they expect. Instead every key failed with CLUSTERDOWN. The reason is a deliberate default, and the trigger was a placement mistake that removed the cluster's ability to fail over. Interviewers ask this to see whether we know the coverage settings, when to change them, and how to prevent the placement error. In this answer, we will recap slot coverage and failover, explain why one shard stopped everything, change the settings, fix placement and add the checks that catch it.
1A Quick Recap: Slot Coverage and Failover
Every one of the 16,384 hash slots must have an owner, a primary that serves its keys. When a primary fails, the cluster promotes one of its replicas, which then owns the slots and keeps them covered. If a primary fails and it has no working replica, its slots are left without an owner, and the cluster is said to have lost full coverage.
Each node tracks this in its view of the cluster state. CLUSTER INFO shows cluster_state ok or fail, and cluster_slots_fail counts slots whose owner is considered failed.
2Why One Lost Shard Stopped Everything
Here the primary of shard 3 and its only replica ran on the same physical host. When the host failed, both disappeared at once, so there was nobody to promote and slots 6554 to 9829, a fifth of the key space, had no owner.
With cluster-require-full-coverage yes, the default, every node that sees uncovered slots sets its cluster state to fail and stops accepting queries for all keys, including keys in slots it owns and serves perfectly well. Clients receive CLUSTERDOWN The cluster is down for everything. The intent is conservative: a cluster that silently answers for 80 percent of keys might let an application compute wrong results, for example a sum across shards that quietly misses a fifth of the data. Stopping completely makes the failure visible.
- Host failsprimary 3 and its replica both on it
- Does primary 3 have a working replica?YesPromote it, slots coveredNoSlots 6554-9829 uncovered
- cluster-require-full-coverage yes?YesEvery node stops serving all keysNoHealthy shards keep serving
- Clients get CLUSTERDOWN for every key
4 steps in order. Play them, or step through them one at a time.
3Changing the Coverage Settings
For a cache, stopping everything is almost always the wrong trade. If a fifth of the cached keys are unavailable, the application can fall back to the database for those keys and keep serving the rest from Redis. cluster-require-full-coverage no does exactly that: healthy primaries keep serving their slots, and only commands for keys in uncovered slots fail.
cluster-allow-reads-when-down yes goes one step further: nodes answer reads even while their cluster state is fail, for example when a node is in a minority partition and cannot reach the majority. Those reads can be stale, so it suits read-mostly data where availability matters more than freshness, such as a catalogue cache, and not data where a stale read causes harm. Writes are still refused in that state.
Both settings are per node, so they must be the same on every node and survive restarts through the configuration file.
4Fixing Placement: Never Primary and Replica Together
The settings only limit the damage; the real cause is that one host failure removed both copies of a shard. The rule is that a primary and its own replica never share a host, and in a cloud they should not share an availability zone. On Kubernetes this means pod anti-affinity and topology spread constraints, plus a check that the cluster's replica assignment matches them, since Kubernetes knows nothing about which pod replicates which.
Replica migration adds a second safety net. If a primary loses its replicas, the cluster can move a spare replica from another primary to it. cluster-migration-barrier, default 1, says a primary gives away a replica only if it keeps at least one, so with one replica per primary nothing moves; adding a spare replica to a few primaries gives the cluster something to migrate.
| Host | Primary | Replica of |
|---|---|---|
| host-1 | P1 | P5 |
| host-2 | P2 | P1 |
| host-3 | P3 | P2 |
| host-4 | P4 | P3 |
| host-5 | P5 | P4 |
5Testing and Alerting
Test the failure we just had: stop a host, and in the cloud simulate a zone loss, under load, and check that every shard fails over. Then alert on what would have shown the risk before it hurt: cluster_state not ok and cluster_slots_fail above zero from CLUSTER INFO, and, from CLUSTER NODES, any primary without a replica or any primary and replica on the same host or zone. That last check catches placement drift after repairs and scaling, when tools tend to put nodes wherever there is room.
6Follow-up questions
When would you keep full coverage required?
When partial answers are worse than no answers: for example when the application combines data from many keys across shards and would compute a wrong total or a wrong decision if some keys silently returned errors that it treats as missing, or when Redis is the source of truth for data whose partial loss must stop processing. In those cases a clear outage is safer, and we invest in placement and replicas so it rarely happens.
Does cluster-require-full-coverage no change failover?
No. Failover still needs a majority of primaries to vote. The setting only decides whether healthy nodes keep serving while some slots have no owner.
How does the application handle errors for the lost shard?
Lettuce surfaces CLUSTERDOWN as an exception for those commands. Cache code should treat it like a miss and fall back to the database, ideally with a circuit breaker so the database is not hit with every request at once.
7Conclusion
In this answer, we saw that cluster-require-full-coverage yes, the default, makes every node stop serving all keys when any slot lacks a working owner, so losing a primary together with its only replica stopped the whole cluster. Setting it to no lets healthy shards keep serving, and cluster-allow-reads-when-down yes adds reads during a down state for read-mostly data. The root cause was placing a primary and its replica on one host, so we spread them across hosts and zones, used replica migration as a safety net, tested host and zone loss, and alerted on cluster state, failed slots and placement.
Open with
The default cluster-require-full-coverage yes explains it. When any of the 16,384 slots has no working owner, every node marks the cluster as failed and refuses all queries, even for keys in slots it owns, so one lost shard returned CLUSTERDOWN for every key.
Then, if they want more
The intent is to never return partial results silently. The shard had no owner because its primary and its only replica were on the same physical host, so when the host died there was nothing to promote.
For a cache, I would set cluster-require-full-coverage to no on every node, so healthy primaries keep serving their slots and only keys on the lost shard fail, which the application treats as cache misses. If the data is read-mostly and availability beats freshness, I would also consider cluster-allow-reads-when-down yes, which lets nodes answer reads while the cluster state is down.
But the real fix is placement: a primary and its own replica must never share a host or a zone, enforced with anti-affinity and checked continuously, and I would keep cluster-migration-barrier at 1 with a few spare replicas so a primary that lost its replica can receive one from another primary.
Finally I would test host and zone loss under load, and alert on cluster_state and cluster_slots_fail in CLUSTER INFO and on primaries without replicas or co-located with their replicas in CLUSTER NODES.
About this answer
- Last updated
- 13 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Redis documentation
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Clients log 'CLUSTERDOWN The cluster is down' for every key. Why does losing one shard...": https://scrivio-interview-library.netlify.app/databases/redis-scaling/3cbab1c25c/