NOREPLICAS: NOREPLICAS Not enough good replicas to write (쓰기에 필요한 정상 replica 부족)
Redis의미
min-replicas-to-write 설정 때문에 정상 replica가 충분하지 않아 쓰기가 거부된다. Redis가 데이터 안전을 위해 쓰기를 차단한다.
원인
연결되었거나 최신 상태인 replica 부족, replica 장애, min-replicas-max-lag 한도를 넘는 복제 지연, 네트워크 문제, 또는 페일오버 후 replica 누락.
해결 방법
replica 상태를 확인한다: INFO replication. 중단된 replica를 다시 가동하고 복제 지연을 줄인다. 네트워크 연결을 수정한다. 환경에 맞게 min-replicas-to-write / min-replicas-max-lag 설정을 검토한다(내구성과 가용성 간의 균형). 충분한 replica를 확보한다.
같은 데이터베이스의 다른 항목
- BUSYKEYBUSYKEY Target key name already exists (대상 키 이름이 이미 존재함)
- ERR no such keyERR no such key
- ERR DUMP payload version or checksum are wrongERR DUMP payload version or checksum are wrong (DUMP 페이로드 버전 또는 체크섬 오류)
- ERR This instance has cluster support disabledERR This instance has cluster support disabled (이 인스턴스는 클러스터 지원이 비활성화됨)
- ERR unknown subcommandERR unknown subcommand or wrong number of arguments (알 수 없는 하위 명령 또는 잘못된 인수 개수)
- ERR Client sent AUTH, but no password is setERR AUTH <password> called without any password configured for the default user (Redis 6+) / ERR Client sent AUTH, but no password is set (Redis <6) (비밀번호가 설정되지 않은 상태에서 AUTH 호출)
- ERR DEBUG command not allowedDEBUG command not allowed