BUG 2676 : Add some tuning parameters to improve the performance of CDS
authorMoiz Raja <moraja@cisco.com>
Fri, 20 Feb 2015 11:27:56 +0000 (03:27 -0800)
committerMoiz Raja <moraja@cisco.com>
Fri, 20 Feb 2015 11:27:56 +0000 (03:27 -0800)
Change-Id: I307a27d7d0cbb7e5b6fe49eb36e4ee4996234bce
Signed-off-by: Moiz Raja <moraja@cisco.com>
test/tools/cluster-deployer/templates/multi-node-test/akka.conf.template
test/tools/cluster-deployer/templates/openflow/akka.conf.template

index 738d538994d93abf97a2e29139c987030d9d1ca1..c1ae19f62086a6ce2b2c66ec364ac9e8d4d98c50 100644 (file)
@@ -24,6 +24,18 @@ odl-cluster-data {
                   "com.google.protobuf.Message" = proto
 
               }
+
+      default-dispatcher {
+        # Setting throughput to 1 makes the dispatcher fair. It processes 1 message from
+        # the mailbox before moving on to the next mailbox
+        throughput = 1
+      }
+
+      default-mailbox {
+        # When not using a BalancingDispatcher it is recommended that we use the SingleConsumerOnlyUnboundedMailbox
+        # as it is the most efficient for multiple producer/single consumer use cases
+        mailbox-type="akka.dispatch.SingleConsumerOnlyUnboundedMailbox"
+      }
     }
     remote {
       log-remote-lifecycle-events = off
index 738d538994d93abf97a2e29139c987030d9d1ca1..8391ed9e4c731042f6ec5caded1cf17a84de3d57 100644 (file)
@@ -24,6 +24,19 @@ odl-cluster-data {
                   "com.google.protobuf.Message" = proto
 
               }
+
+      default-dispatcher {
+        # Setting throughput to 1 makes the dispatcher fair. It processes 1 message from
+        # the mailbox before moving on to the next mailbox
+        throughput = 1
+      }
+
+      default-mailbox {
+        # When not using a BalancingDispatcher it is recommended that we use the SingleConsumerOnlyUnboundedMailbox
+        # as it is the most efficient for multiple producer/single consumer use cases
+        mailbox-type="akka.dispatch.SingleConsumerOnlyUnboundedMailbox"
+      }
+
     }
     remote {
       log-remote-lifecycle-events = off