服务器时间不同步导致集群之间主从同步失败

环境:

3主3从部署的集群

 

973:M 21 Nov 19:19:30.083 * Ready to accept connections
973:M 21 Nov 19:19:30.204 * Slave 192.168.10.1:9002 asks for synchronization
973:M 21 Nov 19:19:30.204 * Partial resynchronization not accepted: Replication ID mismatch (Slave asked for 'd9f5eb54bd9658e45ac7d69f4e09d7215c17609b', my replication IDs are 'ee12fa1ee734c9fdcaeba2dddf7909b0852c663d' and '0000000000000000000000000000000000000000')
973:M 21 Nov 19:19:30.204 * Starting BGSAVE for SYNC with target: disk
973:M 21 Nov 19:19:30.208 * Background saving started by pid 6424

 

解决办法:

1.重新同步服务器时间;

2.重启redis

posted @ 2024-11-22 08:59  slnngk  阅读(0)  评论(0编辑  收藏  举报