error 1
WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128
前每一个端口最大的监听队列的长度不满足这个高负载环境,需要调整
解决方法:echo 2048 > /proc/sys/net/core/somaxconn
error 2
WARNING overcommit_memory is set to 0! Background save may fail under low memory condition
内存超额警告,当前内存设置为0会导致后台保存失败
解决方法:
echo "vm.overcommit_memory=1" > /etc/sysctl.conf
#刷新配置文件保其生效
sysctl vm.overcommit_memory=1
error 3
WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis
内核中启用了透明大页面(THP)支持会将导致Redis的延迟和内存使用问题
解决方法:
echo never > /sys/kernel/mm/transparent_hugepage/enabled
error 4
Error condition on socket for SYNC: Connection reset by peer
连接被拒绝,因为主服务器可能绑定了自身IP地址
解决办法:
#修改主节点配置文件
vim /etc/redis/6379.conf
bind 0.0.0.0 #70行修改监听地址为0.0.0.0
|