[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:6379
slots:0-16383 (16384 slots) master
0 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连下,正常了。可以连接,并且放入值和取出值也正常。
[ERR] Not all 16384 slots are covered by nodes.的更多相关文章
- redis初试Not all 16384 slots are covered by nodes
按照这里的步骤玩redis集群,http://www.redis.cn/topics/cluster-tutorial.html ./src/redis-trib.rb create --replic ...
- redis 集群 slots are covered by nodes.
原因数据数据损坏.需要修复 1.检测 redis-cli --cluster check 127.0.0.1:7000 2.检测结果 slots are covered by nodes3.进行修复 ...
- Redis 3.0.5 集群的命令、使用、维护
cluster命令 CLUSTER INFO 打印集群的信息 CLUSTER NODES 列出集群当前已知的所有节点(node),以及这些节点的相关信息. //节点 CLUSTER MEET < ...
- Windows 部署 Redis 群集
1,下载Redis for windows 的最新版本,解压到 c:\Redis 目录下备用https://github.com/MSOpenTech/redis/releases当前我使用的是 3. ...
- 部署 Redis 群集
Windows 部署 Redis 群集 1,下载Redis for windows 的最新版本,解压到 c:\Redis 目录下备用https://github.com/MSOpenTech/re ...
- Windows 部署 Redis 群集(转)
1,下载Redis for windows 的最新版本,解压到 c:\Redis 目录下备用https://github.com/MSOpenTech/redis/releases当前我使用的是 3. ...
- Redis单机多节点集群实验
第一步:安装Redis 前面已经安装过了 不解释, Reids安装包里有个集群工具,要复制到/usr/local/bin里去 cp redis-3.2.9/src/redis-trib.rb /usr ...
- Redis多机多节点集群实验
第一步:环境准备 我们搞两台虚拟机 局域网IP 分别是 192.168.1.109和192.168.1.110 我们约定把192.168.1.109作为集群控制端,需要安装redis-trib.rb ...
- redis集群部署+节点端口修改+数据恢复
环境:OS:Centos 7Redis: 3.2.11主 从192.168.1.118:7001 192.168.1.118:8001192.168.1.118:7002 192.168.1.118: ...
随机推荐
- jmeter自动生成报告
从JMeter 3.0开始已支持自动生成动态报告,我们可以更容易根据生成的报告来完成我们的性能测试报告. 如何生成html测试报告 如果未生成结果文件(.jtl),可运行如下命令生成报告: jmete ...
- Spring MVC 3.0 深入及对注解的详细讲解[转载]
http://blog.csdn.net/jzhf2012/article/details/8463783 核心原理 1. 用户发送请求给服务器.url:user.do 2. ...
- hdu 1966 Pie
Pie Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submiss ...
- 操作系统-容器-Docker:如何将应用打包成为 Docker 镜像?
ylbtech-操作系统-容器-Docker:如何将应用打包成为 Docker 镜像? 1.返回顶部 1. 虽然 DockerHub 提供了大量的镜像,但是由于企业环境的多样性,并不是每个应用都能在 ...
- 过度使用DBLINK做系统集成会带来的问题
过度使用DBLINK做系统集成会带来很多问题,问题主要由以下几点: 1. 大量消耗数据库资源: 本地系统每通过DBLINK链接远端系统一次,都会生成一个本地session,如本地session不退出或 ...
- linux 守护进程 daemon
Linux的Service/Daemon你真的懂了吗? Linux 守护进程的启动方法 linux系统编程之进程(八):守护进程详解及创建,daemon()使用 linux守护进程 daemon 详解
- 使用shell/bat脚本调试java程序示例
一.linux下shell启动java #!/bin/sh JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre # JVM_OPT ...
- ios关闭自动更新
iPhone系统更新超级烦人,避免测试机升级的方法 1. 设置禁用网络 设置-网线局域网-使用WLAN与蜂窝移动网的应用,将设置项设置为关闭 2. 一劳永逸,安装证书, 证书https://oldca ...
- nginx 限流配置
上配置 http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr ...
- springMVC 是单例还是的多例的?
曾经面试的时候有面试官问我spring的controller是单例还是多例,结果我傻逼的回答当然是多例,要不然controller类中的非静态变量如何保证是线程安全的,这样想起似乎是对的,但是不知道( ...