• Stars
    star
    97
  • Rank 348,505 (Top 7 %)
  • Language
    Scala
  • License
    Apache License 2.0
  • Created over 7 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Quorum split brain resolver for static akka cluster

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.