akka-reasonable-downing


License

License

Categories

Categories

Immutables Application Layer Libs Code Generators Akka Container Microservices Reactive libraries
GroupId

GroupId

pl.immutables
ArtifactId

ArtifactId

akka-reasonable-downing_2.12
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

akka-reasonable-downing
akka-reasonable-downing
Project URL

Project URL

http://github.com/mbilski/akka-reasonable-downing
Project Organization

Project Organization

Mateusz Bilski
Source Code Management

Source Code Management

https://github.com/mbilski/akka-reasonable-downing

Download akka-reasonable-downing_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/pl.immutables/akka-reasonable-downing_2.12/ -->
<dependency>
    <groupId>pl.immutables</groupId>
    <artifactId>akka-reasonable-downing_2.12</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/pl.immutables/akka-reasonable-downing_2.12/
implementation 'pl.immutables:akka-reasonable-downing_2.12:1.1.0'
// https://jarcasting.com/artifacts/pl.immutables/akka-reasonable-downing_2.12/
implementation ("pl.immutables:akka-reasonable-downing_2.12:1.1.0")
'pl.immutables:akka-reasonable-downing_2.12:jar:1.1.0'
<dependency org="pl.immutables" name="akka-reasonable-downing_2.12" rev="1.1.0">
  <artifact name="akka-reasonable-downing_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='pl.immutables', module='akka-reasonable-downing_2.12', version='1.1.0')
)
libraryDependencies += "pl.immutables" % "akka-reasonable-downing_2.12" % "1.1.0"
[pl.immutables/akka-reasonable-downing_2.12 "1.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.6
com.typesafe.akka : akka-cluster_2.12 jar 2.5.13

test (2)

Group / Artifact Type Version
com.typesafe.akka : akka-multi-node-testkit_2.12 jar 2.5.13
org.scalatest : scalatest_2.12 jar 3.0.5

Project Modules

There are no modules declared in this project.

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.

Versions

Version
1.1.0
1.0.0