1、查看错误信息: 1.1 错误信息(1) 127.0.0.1:7000> get name (error) CLUSTERDOWN The cluster is down 127.0.0.1:7000> cluster info cluster_state:fail cluster_slots_assigned:16380 cluster_slots_ok:16380 cluster_slots_pfail:0 cluster_slots_fail:0 cluster_known_nodes:6 cluster_size:3 cluster_cur...
cluster_state:fail 文心快码BaiduComate 当遇到 cluster_state:fail 的情况时,这通常意味着Redis集群中存在严重的问题,导致集群无法正常工作。为了解决这个问题,你可以按照以下步骤进行: 1. 确认集群状态 首先,你需要确认集群确实处于 fail 状态。你可以通过连接到集群中的任何一个节点,并使用 CLUSTER INFO 命令来查看...
192.168.3.2:6379> cluster info cluster_state:fail---》显示集群状态已关闭 cluster_slots_assigned:16384 cluster_slots_ok:10923 cluster_slots_pfail:0 cluster_slots_fail:5461 cluster_known_nodes:6 cluster_size:3 cluster_current_epoch:6 cluster_my_epoch:2 cluster_stats_messages_ping_sent:2203 clust...
redis cluster 停止 redis cluster_state fail,场景: pt环境下研发反馈说redis集群down掉了,报(error) CLUSTERDOWN The cluster is down由于是在k8s里运行redis-cluster,随便登录上其中一个节点去查询,发现在82这个节点上cluster_state
127.0.0.1:6379>setname tom---》测试在redis集群中存数据时报错->Redirected to slot[5798]located at192.168.3.2:6379(error)CLUSTERDOWNThe cluster is down192.168.3.2:6379>cluster infocluster_state:fail---》显示集群状态已关闭cluster_slots_assigned:16384cluster_slots_ok:10923cluster_slots_pfail:0cluster...
[root@es-node22 ~]# docker exec -it redis-1 /bin/sh ---》redis中默认没有bash解释器 /data # redis-cli -c 127.0.0.1:6379> cluster info cluster_state:ok ---》可以看到redis集群状态已经为OK cluster_slots_assigned:16384 cluster_slots_ok:16384 cluster_slots_pfail:0 cluster_slots_fail:0 ...
172.168.15.101:7001> CLUSTER INFOcluster_state:failcluster_slots_assigned:16354cluster_slots_ok:16354cluster_slots_pfail:0cluster_slots_fail:0cluster_known_nodes:6cluster_size:3cluster_current_epoch:7cluster_my_epoch:1cluster_stats_messages_ping_sent:1666cluster_stats_messages_pong_sent:1063cluster_...
172.168.15.101:7001> CLUSTER INFOcluster_state:okcluster_slots_assigned:16384cluster_slots_ok:16384cluster_slots_pfail:0cluster_slots_fail:0cluster_known_nodes:6cluster_size:3cluster_current_epoch:7cluster_my_epoch:1cluster_stats_messages_ping_sent:2108cluster_stats_messages_pong_sent:1508cluster_sta...
172.168.15.101:7001>CLUSTERINFOcluster_state:failcluster_slots_assigned:16354cluster_slots_ok:16354cluster_slots_pfail:0cluster_slots_fail:0cluster_known_nodes:6cluster_size:3cluster_current_epoch:7cluster_my_epoch:1cluster_stats_messages_ping_sent:1666cluster_stats_messages_pong_sent:1063cluster_stats...
说明槽在当前节点,可以直接在当前节点执行命令;否则,说明槽不在当前节点,则查询槽所在节点的地址(clusterState.slots[i].ip/port),并将其包装到MOVED错误中返回给redis-cli。 (3)redis-cli收到MOVED错误后,根据返回的ip和port重新发送请求。 下面的例子展示了redis-cli和集群的互动过程:在7000节点中操作key1,但...