恢复集群状态,2.128为主,2.129、2.130为从。
此时,从2.128上看sentinel状态:
由于sentinel都是对等的,在此选择对2.128上的sentinel进行进程宕测试:
此时,本节点sentinel日志为:
其他节点sentinel日志为:
表示2.128上的sentnel已经宕。
此时集群读写正常,在一个sentinel宕机的基础上宕master后切换正常。
');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-left-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-left-style:solid}.wp-block-image figure{margin:0}/*]]>*/
恢复集群状态,2.128为主,2.129、2.130为从。
此时,从2.128上看sentinel状态:
由于sentinel都是对等的,在此选择对2.128上的sentinel进行进程宕测试:
此时,本节点sentinel日志为:
其他节点sentinel日志为:
表示2.128上的sentnel已经宕。
此时集群读写正常,在一个sentinel宕机的基础上宕master后切换正常。