akka-reasonable-downing provides split brain resolver for static akka cluster using quorum strategy.
Add to your build.sbt
libraryDependencies += "pl.immutables" %% "akka-reasonable-downing" % "1.0.0"
akka {
cluster {
downing-provider-class = "pl.immutables.akka.reasonable.downing.StaticQuorumDowningProvider"
min-nr-of-members = ${akka.reasonable.downing.quorum-size}
}
reasonable.downing {
# the time to make a decision after the cluster is stable
stable-after = 7 seconds
# the N / 2 + 1 where N is number of nodes in a static cluster
quorum-size = 3
}
}
See the demo here.
This code is open source software licensed under the Apache-2.0 license.