Skip to content
Quorum split brain resolver for static akka cluster
Scala
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
project
src
.gitignore
.scalafmt.conf
CHANGELOG.md
LICENSE
README.md
build.sbt
version.sbt

README.md

akka-reasonable-downing

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.2.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.

You can’t perform that action at this time.