CLUSTERDOWN: The cluster cannot serve this slot
The cluster as a whole is not healthy: slots are unowned or too many nodes are unreachable, so commands are refused instead of half-executed.
- Error prefix
CLUSTERDOWN
의미
CLUSTERDOWN is the cluster-level refusal: the node you are talking to believes the cluster cannot serve this key correctly right now. The most common form reads The cluster is down and appears when the cluster state is fail, typically because too many primary nodes are unreachable. A second form, Hash slot not served, appears when the key's slot belongs to no node at all, which happens after crashes or an unfinished setup. A third reads The cluster is down and only accepts read commands and appears when cluster-allow-reads-when-down is enabled.
Redis Cluster refuses rather than guessing: routing a write without a verified owner could produce split-brain data that never reconciles. The usual real-world triggers are a crashed primary without a working replica, and networks that partition a minority of nodes.
일반적인 원인
- Too many primary nodes are unreachable at once, so the cluster marks its state as fail.
- The key's slot is covered by no node: a primary crashed and its replicas are gone too, or the slot was never assigned.
- A brand new cluster-enabled node has not been given any slots and cannot verify ownership.
Find the cause
redis-cli -p 7000 CLUSTER INFO # cluster_state:fail and cluster_slots_assigned below 16384 confirm the diagnosis redis-cli -p 7000 CLUSTER NODES # Lines not marked online are the nodes this one cannot reach
해결 방법
-
Look at the cluster state and how many slots are actually assigned:
redis-cli -p 7000 CLUSTER INFO | grep -E 'cluster_state|cluster_slots_assigned' redis-cli -p 7000 CLUSTER NODES
-
Bring the failed nodes back, or reconnect this node's view of them:
redis-cli -p 7000 CLUSTER MEET 127.0.0.1 7001
-
After crashes, repair slot coverage; the cluster tool can fix slots that lost their owner:
redis-cli --cluster fix 127.0.0.1:7000
Other ways to handle it
cluster-allow-reads-when-down yes lets reads through in a degraded cluster when you prefer stale reads to hard failures. For production, run a replica per primary so a single crash does not uncover slots, and alert on cluster_state before users ever see CLUSTERDOWN.
안전하게 재현하세요
A fresh cluster-enabled node starts in the fail state with no slots assigned, which reproduces the error without a multi-node setup.
redis-server --port 7100 --cluster-enabled yes --cluster-config-file nodes-7100.conf --save '' & redis-cli -p 7100 GET foo # (error) CLUSTERDOWN The cluster is down redis-cli -p 7100 CLUSTER INFO | grep cluster_state # cluster_state:fail
질문
CLUSTERDOWN or MOVED: how do they differ?
MOVED names a healthy owner elsewhere in the cluster. CLUSTERDOWN means the cluster cannot promise any correct owner right now, so it refuses instead.
Why does it refuse instead of answering from local data?
Serving data without a verified slot owner risks split brain: two nodes could accept writes for the same slot and the copies would never reconcile.
관련 오류
MOVEDThe key lives on another cluster nodeTRYAGAINSlot is rehashing, retry the command2003MySQL: 호스트의 MySQL 서버에 연결할 수 없음
More cluster and replication errors
READONLYWrite rejected on a read only replicaMASTERDOWNStale data is not allowed to be servedASKThe key is migrating to another nodeCROSSSLOTMulti-key command spans two slotsNOREPLICASToo few healthy replicas to write
코드와 메시지 텍스트의 출처는 다음과 같습니다 Redis documentation and source code. 전체 목록은 Redis error list 또는 모든 데이터베이스 오류 검색.
Work on Redis in SQLly
A native SQL client for macOS, Windows and Linux with schema-aware IntelliSense, guardrails for risky statements and clear error messages, for Redis and the other databases you use.
이 페이지의 텍스트와 데이터: CC BY 4.0, 출처: SQLly (sqlly.app). 코드와 SQL 스니펫: MIT. 라이선스 세부 정보 인용된 오류 메시지 텍스트의 권리는 해당 데이터베이스 공급업체에 있습니다.