Add notification-dispatcher configuration for default akka.conf. 95/33495/5
authorMoiz Raja <moraja@cisco.com>
Sat, 16 Jan 2016 02:13:56 +0000 (18:13 -0800)
committerTom Pantelis <tpanteli@brocade.com>
Thu, 4 Feb 2016 21:33:14 +0000 (21:33 +0000)
Change-Id: I9d4983b9d435f527738a84aa03904f23ec2237c1
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/akka.conf

index 2f8f9cd..b15b5bc 100644 (file)
@@ -8,6 +8,26 @@ odl-cluster-data {
 
   metric-capture-enabled = true
 
 
   metric-capture-enabled = true
 
+  notification-dispatcher {
+    # Dispatcher is the name of the event-based dispatcher
+    type = Dispatcher
+    # What kind of ExecutionService to use
+    executor = "fork-join-executor"
+    # Configuration for the fork join pool
+    fork-join-executor {
+      # Min number of threads to cap factor-based parallelism number to
+      parallelism-min = 2
+      # Parallelism (threads) ... ceil(available processors * factor)
+      parallelism-factor = 3.0
+      # Max number of threads to cap factor-based parallelism number to
+      parallelism-max = 15
+    }
+    # Throughput defines the maximum number of messages to be
+    # processed per actor before the thread jumps to the next actor.
+    # Set to 1 for as fair as possible.
+    throughput = 1
+  }
+
   akka {
     loglevel = "INFO"
     loggers = ["akka.event.slf4j.Slf4jLogger"]
   akka {
     loglevel = "INFO"
     loggers = ["akka.event.slf4j.Slf4jLogger"]