数据库
首页 > 数据库> > Redis Issues

Redis Issues

作者:互联网

主从不同步

Error condition on socket for SYNC: No route to host

可能的原因:

  1. 网络不通;
  2. 防火墙拦截

NOAUTH Authentication required

从库未配置参数masterauth,值为主库的requirepass

Partial resynchronization not possible (no cached master)

从库出现

Partial resynchronization not possible (no cached master)

主库出现

Can't save ``in background: fork: Cannot allocate memory

操作系统内核参数vm.overcommit_memory或者设置不当,期望值为1。

vi /etc/sysctl.conf
vm.overcommit_memory=1
systctl -p

主库重新启动replication

slaveof no one
slaveof ip port

标签:slaveof,overcommit,resynchronization,no,Redis,master,memory,Issues
来源: https://www.cnblogs.com/syksky/p/16425355.html