redis搭建一主两从三哨兵,报错 Master is currently unabNOMASTERLINK Can‘t SYNC while not connected with my master

2021/12/17 2:12:36

本文主要是介绍redis搭建一主两从三哨兵,报错 Master is currently unabNOMASTERLINK Can‘t SYNC while not connected with my master,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

redis master和两个slave都是报下面的错误

89277:S 16 Dec 2021 12:49:30.640 * Connecting to MASTER 10.38.150.39:6779
89277:S 16 Dec 2021 12:49:30.640 * MASTER <-> REPLICA sync started
89277:S 16 Dec 2021 12:49:30.640 * Non blocking connect for SYNC fired the event.
89277:S 16 Dec 2021 12:49:30.641 * Master replied to PING, replication can continue...
89277:S 16 Dec 2021 12:49:30.641 * Trying a partial resynchronization (request 258c55a8a9dc9e16b3ab964669018e0efb158292:1647).
89277:S 16 Dec 2021 12:49:30.642 * Master is currently unable to PSYNC but should be in the future: -NOMASTERLINK Can't SYNC while not connected with my master

这个错误主要是sentinel.conf配置错误原因,该配置文件应该为主服务的名字和ip、端口号:
例如:sentinel monitor staffappmaster 10.38.150.37 6579 2

不应该配置slave的ip和端口号



这篇关于redis搭建一主两从三哨兵,报错 Master is currently unabNOMASTERLINK Can‘t SYNC while not connected with my master的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程