NOREPLICAS: NOREPLICAS Not enough good replicas to write(没有足够的正常副本可供写入)
Redis含义
由于 min-replicas-to-write 设置,在健康副本不足时写入会被拒绝。Redis 为保证数据安全而阻止写入。
原因
已连接/数据最新的副本不足、副本崩溃、复制延迟超过 min-replicas-max-lag 限制、网络问题,或故障转移后缺少副本。
解决方法
检查副本状态:INFO replication。恢复宕机的副本并减少复制延迟。修复网络连通性。根据你的环境检查 min-replicas-to-write / min-replicas-max-lag 设置(在持久性与可用性之间取得平衡)。提供足够数量的副本。
同一数据库的其他条目
- 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(不允许使用 DEBUG 命令)