提交 085b0b28 编写于 作者: S Shlomi Noach

Analysis: DeadIntermediateMasterAndSlaves

上级 0771e5a3
......@@ -45,6 +45,7 @@ const (
DeadIntermediateMasterWithSingleSlave = "DeadIntermediateMasterWithSingleSlave"
DeadIntermediateMasterWithSingleSlaveFailingToConnect = "DeadIntermediateMasterWithSingleSlaveFailingToConnect"
DeadIntermediateMasterAndSomeSlaves = "DeadIntermediateMasterAndSomeSlaves"
DeadIntermediateMasterAndSlaves = "DeadIntermediateMasterAndSlaves"
UnreachableIntermediateMaster = "UnreachableIntermediateMaster"
AllIntermediateMasterSlavesFailingToConnectOrDead = "AllIntermediateMasterSlavesFailingToConnectOrDead"
AllIntermediateMasterSlavesNotReplicating = "AllIntermediateMasterSlavesNotReplicating"
......
......@@ -318,6 +318,10 @@ func GetReplicationAnalysis(clusterName string, includeDowntimed bool, auditAnal
a.Analysis = DeadIntermediateMasterAndSomeSlaves
a.Description = "Intermediate master cannot be reached by orchestrator; some of its replicas are unreachable and none of its reachable replicas is replicating"
//
} else if !a.IsMaster && !a.LastCheckValid && a.CountReplicas > 0 && a.CountValidReplicas == 0 {
a.Analysis = DeadIntermediateMasterAndSlaves
a.Description = "Intermediate master cannot be reached by orchestrator and all of its replicas are unreachable"
//
} else if !a.IsMaster && !a.LastCheckValid && a.CountValidReplicas > 0 && a.CountValidReplicatingReplicas > 0 {
a.Analysis = UnreachableIntermediateMaster
a.Description = "Intermediate master cannot be reached by orchestrator but it has replicating replicas; possibly a network/host issue"
......
-- 22295 replicates from 22294
UPDATE database_instance SET last_seen=last_checked - interval 1 minute where master_port=22294;
UPDATE database_instance SET last_seen=last_checked - interval 1 minute where port=22294;
testhost:22294 (cluster testhost:22293): DeadIntermediateMasterAndSlaves
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册