Small refactoring of cluster actors
* Separate actor for heartbeats, so they are more isolated from gossip messages * Configuration property for dispatcher to use for the cluster actors
This commit is contained in:
parent
ddadb1bb06
commit
c09caebe8a
4 changed files with 59 additions and 19 deletions
|
|
@ -7,6 +7,7 @@ package akka.cluster
|
|||
import akka.testkit.AkkaSpec
|
||||
import akka.util.duration._
|
||||
import akka.util.Duration
|
||||
import akka.dispatch.Dispatchers
|
||||
|
||||
@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
|
||||
class ClusterConfigSpec extends AkkaSpec {
|
||||
|
|
@ -32,6 +33,7 @@ class ClusterConfigSpec extends AkkaSpec {
|
|||
NrOfGossipDaemons must be(4)
|
||||
AutoJoin must be(true)
|
||||
AutoDown must be(true)
|
||||
UseDispatcher must be(Dispatchers.DefaultDispatcherId)
|
||||
GossipDifferentViewProbability must be(0.8 plusOrMinus 0.0001)
|
||||
SchedulerTickDuration must be(33 millis)
|
||||
SchedulerTicksPerWheel must be(512)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue