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-06-18 11:10:59 +02:00
|
|
|
FailureDetectorThreshold must be(8.0 plusOrMinus 0.0001)
|
2012-01-31 15:00:46 +01:00
|
|
|
FailureDetectorMaxSampleSize must be(1000)
|
2012-06-20 14:14:10 +02:00
|
|
|
FailureDetectorImplementationClass must be(classOf[AccrualFailureDetector].getName)
|
2012-06-18 11:10:59 +02:00
|
|
|
FailureDetectorMinStdDeviation must be(100 millis)
|
2012-06-20 10:18:15 +02:00
|
|
|
FailureDetectorAcceptableHeartbeatPause must be(3 seconds)
|
2012-06-21 10:58:35 +02:00
|
|
|
SeedNodes must be(Seq.empty[String])
|
2012-06-25 20:40:06 +02:00
|
|
|
SeedNodeTimeout must be(5 seconds)
|
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-06-20 08:26:41 +02:00
|
|
|
JoinTimeout must be(60 seconds)
|
2012-02-20 15:26:12 +01:00
|
|
|
NrOfGossipDaemons must be(4)
|
2012-06-21 10:58:35 +02:00
|
|
|
AutoJoin must be(true)
|
2012-03-09 12:56:56 +01:00
|
|
|
AutoDown must be(true)
|
2012-06-29 08:56:58 +02:00
|
|
|
GossipDifferentViewProbability must be(0.8 plusOrMinus 0.0001)
|
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
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|