public static class SplitBrainResolver.KeepOldest extends SplitBrainResolver.Strategy
There is one exception to this rule if downIfAlone is defined to true.
Then, if the oldest node has partitioned from all other nodes the oldest will
down itself and keep all other nodes running. The strategy will not down the
single oldest node when it is the only remaining node in the cluster.
Note that if the oldest node crashes the others will remove it from the cluster
when downIfAlone is true, otherwise they will down themselves if the
oldest node crashes, i.e. shutdown the whole cluster together with the oldest node.
If the role is defined the decision is based only on members with that role,
i.e. using the oldest member (singleton) within the nodes with that role.
It is only using members within the own data center, i.e. oldest within the data center.
| Constructor and Description |
|---|
KeepOldest(java.lang.String selfDc,
boolean downIfAlone,
scala.Option<java.lang.String> role) |
| Modifier and Type | Method and Description |
|---|---|
SplitBrainResolver.Decision |
decide() |
boolean |
downIfAlone() |
scala.math.Ordering<akka.cluster.Member> |
ordering() |
scala.Option<java.lang.String> |
role() |
add, addReachable, addUnreachable, allMembersInDC, hasIndirectlyConnected, indirectlyConnected, isAllUnreachableDownOrExiting, joining, lease, members, members, membersWithRole, membersWithRole, nodesToDown, nodesToDown$default$1, reachability, reachableMembers, reachableMembers, reachableMembersWithRole, reachableMembersWithRole, remove, reverseDecision, seenBy, selfDc, setReachability, setSeenBy, unreachable, unreachable, unreachableButNotIndirectlyConnected, unreachableMembers, unreachableMembers, unreachableMembersWithRole, unreachableMembersWithRolepublic KeepOldest(java.lang.String selfDc,
boolean downIfAlone,
scala.Option<java.lang.String> role)
public SplitBrainResolver.Decision decide()
decide in class SplitBrainResolver.Strategypublic boolean downIfAlone()
public scala.math.Ordering<akka.cluster.Member> ordering()
ordering in class SplitBrainResolver.Strategypublic scala.Option<java.lang.String> role()
role in class SplitBrainResolver.Strategy