日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

[ERR] Not all 16384 slots are covered by nodes.

發布時間:2025/7/25 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 [ERR] Not all 16384 slots are covered by nodes. 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

redis集群開不起來,用redis-cli連接的時候出現如下錯誤:

CLUSTERDOWN The cluster is down

然后使用redis-trib.rb檢查:

./redis-trib.rb check 10.10.25.243:6379

出現如下錯誤:

Connecting to node 10.10.20.243:6379: OK

>>> Performing Cluster Check(using node 10.10.20.243:6379)

[OK] All nodes agree about slotsconfiguration.

>>> Check for open slots...

>>> Check slots coverage...

[ERR] Not all 16384 slots are covered by nodes.

因為我只有一個節點,單節點集群,所以使用如下方法來修復節點:

./redis-trib.rb fix 10.10.20.243:6379

之后輸出如下:

....... >>> Covering slot 16276 with 10.10.25.243:6379 >>> Covering slot 16277 with 10.10.25.243:6379 >>> Covering slot 16278 with 10.10.25.243:6379 >>> Covering slot 16279 with 10.10.25.243:6379 >>> Covering slot 16280 with 10.10.25.243:6379 >>> Covering slot 16281 with 10.10.25.243:6379 >>> Covering slot 16282 with 10.10.25.243:6379 >>> Covering slot 16283 with 10.10.25.243:6379 >>> Covering slot 16284 with 10.10.25.243:6379 >>> Covering slot 16285 with 10.10.25.243:6379 >>> Covering slot 16286 with 10.10.25.243:6379 >>> Covering slot 16287 with 10.10.25.243:6379 >>> Covering slot 16288 with 10.10.25.243:6379 >>> Covering slot 16289 with 10.10.25.243:6379 >>> Covering slot 16290 with 10.10.25.243:6379 >>> Covering slot 16291 with 10.10.25.243:6379 >>> Covering slot 16292 with 10.10.25.243:6379 >>> Covering slot 16293 with 10.10.25.243:6379 >>> Covering slot 16294 with 10.10.25.243:6379 >>> Covering slot 16295 with 10.10.25.243:6379 >>> Covering slot 16296 with 10.10.25.243:6379 >>> Covering slot 16297 with 10.10.25.243:6379 >>> Covering slot 16298 with 10.10.25.243:6379 >>> Covering slot 16299 with 10.10.25.243:6379 >>> Covering slot 16300 with 10.10.25.243:6379 >>> Covering slot 16301 with 10.10.25.243:6379 >>> Covering slot 16302 with 10.10.25.243:6379 >>> Covering slot 16303 with 10.10.25.243:6379 >>> Covering slot 16304 with 10.10.25.243:6379 >>> Covering slot 16305 with 10.10.25.243:6379 >>> Covering slot 16306 with 10.10.25.243:6379 ........

然后再檢查下集群的情況:

redis-trib.rb check 10.10.25.243:6379

輸出如下:

>>> Performing Cluster Check (using node 10.10.25.243:6379) M: 4df1b649c1d0d08c2fa2a55e13d8d95c6d4f2b22 10.10.25.243:6379slots:0-16383 (16384 slots) master0 additional replica(s) [OK] All nodes agree about slots configuration. >>> Check for open slots... >>> Check slots coverage... [OK] All 16384 slots covered.

檢查下集群信息:

root@nick-VirtualBox:/home/nick/software/redis-3.2.8# redis-cli -h 10.10.25.243 -p 6379 10.10.25.243:6379> cluster info cluster_state:ok cluster_slots_assigned:16384 cluster_slots_ok:16384 cluster_slots_pfail:0 cluster_slots_fail:0 cluster_known_nodes:1 cluster_size:1 cluster_current_epoch:0 cluster_my_epoch:0 cluster_stats_messages_sent:0 cluster_stats_messages_received:0

?最后用redis-cli連下,正常了??梢赃B接,并且放入值和取出值也正常。

轉載于:https://www.cnblogs.com/toSeeMyDream/p/8716330.html

總結

以上是生活随笔為你收集整理的[ERR] Not all 16384 slots are covered by nodes.的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。