redis节点,始终有一个节点不能启动起来
1.修改了配置文件 protected-mode no,重启
修改了配置文件 protected-mode no,重启redis问题依然存在
2、查看/var/log/message的redis日志
Aug 21 07:40:33 redisMaster kernel: Out of memory: Kill process 31814 (redis-server) score 193 or sacrifice child
Aug 21 07:40:33 redisMaster kernel: Killed process 31814 (redis-server) total-vm:1675000kB, anon-rss:1537180kB, file-rss:0kB, shmem-rss:0kB
3、查看机器内存
total used free shared buff/cache available
Mem: 7552 7202 131 0 217 119
说明机器内存没有了,所以会杀死节点
4、升配置机器,重启redis,节点能够启动成功
cd /data/cluster/7001 && redis-server redis.conf
cd /data/cluster/7002 && redis-server redis.conf
cd /data/cluster/7003 && redis-server redis.conf
cd /data/cluster/7004 && redis-server redis.conf
cd /data/cluster/7005 && redis-server redis.conf
cd /data/cluster/7006 && redis-server redis.conf