MASTERDOWN: MASTERDOWN Link with MASTER is down and replica-serve-stale-data is set to 'no'
Redis의미
replica와 master 간 링크가 끊어졌고, replica-serve-stale-data가 'no'로 설정되어 있어 replica가 오래된 데이터로 요청에 응답하기를 거부한다.
원인
master 노드가 크래시되었거나 연결할 수 없음, 네트워크 단절/파티션, master-replica 복제 링크 끊김, 또는 높은 부하로 master가 응답하지 못함.
해결 방법
master 노드의 상태와 네트워크 연결을 확인한다. 복제 상태를 확인한다: INFO replication. master를 다시 기동하거나 Sentinel/Cluster를 통해 페일오버가 일어나게 한다. 오래된 데이터 제공이 허용된다면 replica-serve-stale-data yes를 검토한다(일관성 위험에 유의). 고가용성을 위해 Sentinel/Cluster를 사용한다.
같은 데이터베이스의 다른 항목
- NOAUTHNOAUTH Authentication required
- WRONGPASSWRONGPASS invalid username-password pair or user is disabled
- READONLYREADONLY You can't write against a read only replica
- CLUSTERDOWNCLUSTERDOWN The cluster is down / Hash slot not served
- LOADINGLOADING Redis is loading the dataset in memory
- BUSYBUSY Redis is busy running a script. You can only call SCRIPT KILL or SHUTDOWN NOSAVE
- MISCONFMISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk