2012-01-31 15:00:46 +01:00
|
|
|
/**
|
|
|
|
|
* 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])
|
2012-05-04 15:03:23 +02:00
|
|
|
class ClusterConfigSpec extends AkkaSpec {
|
2012-01-31 15:00:46 +01:00
|
|
|
|
|
|
|
|
"Clustering" must {
|
|
|
|
|
|
|
|
|
|
"be able to parse generic cluster config elements" in {
|
|
|
|
|
val settings = new ClusterSettings(system.settings.config, system.name)
|
|
|
|
|
import settings._
|
2012-05-04 15:03:23 +02:00
|
|
|
FailureDetectorThreshold must be(8)
|
2012-01-31 15:00:46 +01:00
|
|
|
FailureDetectorMaxSampleSize must be(1000)
|
2012-06-10 16:52:33 +02:00
|
|
|
FailureDetectorImplementationClass must be(None)
|
2012-02-08 14:14:01 +01:00
|
|
|
NodeToJoin must be(None)
|
2012-03-15 23:00:20 +01:00
|
|
|
PeriodicTasksInitialDelay must be(1 seconds)
|
2012-06-04 23:21:28 +02:00
|
|
|
GossipInterval must be(1 second)
|
2012-06-11 14:59:34 +02:00
|
|
|
HeartbeatInterval must be(1 second)
|
2012-06-04 23:21:28 +02:00
|
|
|
LeaderActionsInterval must be(1 second)
|
|
|
|
|
UnreachableNodesReaperInterval must be(1 second)
|
2012-02-20 15:26:12 +01:00
|
|
|
NrOfGossipDaemons must be(4)
|
2011-01-01 01:50:33 +01:00
|
|
|
NrOfDeputyNodes must be(3)
|
2012-03-09 12:56:56 +01:00
|
|
|
AutoDown must be(true)
|
2012-06-12 13:34:59 +02:00
|
|
|
SchedulerTickDuration must be(33 millis)
|
|
|
|
|
SchedulerTicksPerWheel must be(512)
|
2012-01-31 15:00:46 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|