Disable cluster stats by default, see #3348

* Add VectorClockStats
This commit is contained in:
Patrik Nordwall 2013-05-27 16:34:31 +02:00
parent 58756be937
commit a323936299
8 changed files with 90 additions and 61 deletions

View file

@ -21,7 +21,10 @@ object TransitionMultiJvmSpec extends MultiNodeConfig {
val third = role("third")
commonConfig(debugConfig(on = false).
withFallback(ConfigFactory.parseString("akka.cluster.periodic-tasks-initial-delay = 300 s # turn off all periodic tasks")).
withFallback(ConfigFactory.parseString("""
akka.cluster.periodic-tasks-initial-delay = 300 s # turn off all periodic tasks
akka.cluster.publish-stats-interval = 0 s # always, when it happens
""")).
withFallback(MultiNodeClusterSpec.clusterConfigWithFailureDetectorPuppet))
}
@ -82,10 +85,10 @@ abstract class TransitionSpec
def gossipTo(toRole: RoleName): Unit = {
gossipBarrierCounter += 1
runOn(toRole) {
val oldCount = clusterView.latestStats.receivedGossipCount
val oldCount = clusterView.latestStats.gossipStats.receivedGossipCount
enterBarrier("before-gossip-" + gossipBarrierCounter)
awaitCond {
clusterView.latestStats.receivedGossipCount != oldCount // received gossip
clusterView.latestStats.gossipStats.receivedGossipCount != oldCount // received gossip
}
// gossip chat will synchronize the views
awaitCond((Set(fromRole, toRole) -- seenLatestGossip).isEmpty)