BUG 8318: Add a separate dispatcher for cluster actors 38/56938/2
authorTomas Cere <tcere@cisco.com>
Fri, 12 May 2017 09:59:55 +0000 (11:59 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Fri, 12 May 2017 13:13:45 +0000 (13:13 +0000)
When the system is under load it seems like there can
be a missed heartbeat leading to false positives for unreachable
nodes. Run the actors responsible for heartbeats on a separate
dispatcher to avoid this.

Change-Id: Ib4f4225bf69e99d93e3c7010d6fbe1163b96a5a2
Signed-off-by: Tomas Cere <tcere@cisco.com>
opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf

index a9591f1a77c11800ef0e8063d1e8d3d53ec57c63..aa689eddf20408af22793a6e70fcf76dca786090 100644 (file)
@@ -88,6 +88,10 @@ odl-cluster-data {
       #auto-down-unreachable-after = 30s
 
       allow-weakly-up-members = on
+
+      use-dispatcher = cluster-dispatcher
+
+      failure-detector.acceptable-heartbeat-pause = 3 s
     }
 
     persistence {
@@ -97,4 +101,13 @@ odl-cluster-data {
       snapshot-store.plugin = akka.persistence.snapshot-store.local
     }
   }
-}
+
+  cluster-dispatcher {
+    type = "Dispatcher"
+    executor = "fork-join-executor"
+    fork-join-executor {
+      parallelism-min = 2
+      parallelism-max = 4
+    }
+  }
+}
\ No newline at end of file