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和端口号

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐