From d078a3876caf21888bf221aca16683931c4a7280 Mon Sep 17 00:00:00 2001 From: Moiz Raja Date: Fri, 20 Feb 2015 03:20:38 -0800 Subject: [PATCH] BUG 2676 : Add some tuning parameters to improve performance of CDS Added two parameters, - throughput = 1 this is to make the dispatcher fair, which helps in preventing actor starvation - SingleConsumerOnlyUnboundedMailbox which is a more efficient and recommended Mailbox to use in our case I've tested both these settings and they seem to work pretty well and do not contribute to destabilization Change-Id: I5072f7dad7ad862eaafaada3e88d78600fb3665d Signed-off-by: Moiz Raja --- .../src/main/resources/initial/akka.conf | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/akka.conf b/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/akka.conf index 9da6a3b5a4..e72f4b2675 100644 --- a/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/akka.conf +++ b/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/akka.conf @@ -13,17 +13,27 @@ odl-cluster-data { loggers = ["akka.event.slf4j.Slf4jLogger"] actor { - provider = "akka.cluster.ClusterActorRefProvider" serializers { - java = "akka.serialization.JavaSerializer" - proto = "akka.remote.serialization.ProtobufSerializer" - } + java = "akka.serialization.JavaSerializer" + proto = "akka.remote.serialization.ProtobufSerializer" + } + + serialization-bindings { + "com.google.protobuf.Message" = proto + } - serialization-bindings { - "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 -- 2.36.6