* Added 'nr-of-deputy-nodes' config option * Added fetching of current deputy node addresses * Minor refactorings Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
35 lines
865 B
Scala
35 lines
865 B
Scala
/**
|
|
* Copyright (C) 2009-2012 Typesafe Inc. <http://www.typesafe.com>
|
|
*/
|
|
|
|
package akka.cluster
|
|
|
|
import akka.testkit.AkkaSpec
|
|
import akka.util.duration._
|
|
import akka.util.Duration
|
|
|
|
@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
|
|
class ClusterConfigSpec extends AkkaSpec(
|
|
"""
|
|
akka {
|
|
actor {
|
|
provider = "akka.remote.RemoteActorRefProvider"
|
|
}
|
|
}
|
|
""") {
|
|
|
|
"Clustering" must {
|
|
|
|
"be able to parse generic cluster config elements" in {
|
|
val settings = new ClusterSettings(system.settings.config, system.name)
|
|
import settings._
|
|
FailureDetectorThreshold must be(8)
|
|
FailureDetectorMaxSampleSize must be(1000)
|
|
NodeToJoin must be(None)
|
|
GossipInitialDelay must be(5 seconds)
|
|
GossipFrequency must be(1 second)
|
|
NrOfGossipDaemons must be(4)
|
|
NrOfDeputyNodes must be(3)
|
|
}
|
|
}
|
|
}
|