mbilski / akka-reasonable-downing

Quorum split brain resolver for static akka cluster

GitHub

akka-reasonable-downing

Build Status codecov Maven Central

akka-reasonable-downing provides split brain resolver for static akka cluster using quorum strategy.

Setup

Add to your build.sbt

libraryDependencies += "pl.immutables" %% "akka-reasonable-downing" % "1.0.0"

Configuration

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

    # list of the roles which be used in quorum. may be empty or absent.
    quorum-roles = ["seed"]
  }
}

Demo

See the demo here.

License

This code is open source software licensed under the Apache-2.0 license.