X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-config%2Fsrc%2Fmain%2Fresources%2Finitial%2Ffactory-akka.conf;h=490bd876262f7faf160962cd34f72587728a58bf;hb=refs%2Fchanges%2F92%2F75392%2F2;hp=10660fdb5a6bc37eef64e8424f0fbaaf785beb9e;hpb=3a72e9cb6f6b0a17dcf08a3e87772c22a191d580;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf b/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf index 10660fdb5a..490bd87626 100644 --- a/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf +++ b/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf @@ -28,6 +28,29 @@ odl-cluster-data { throughput = 1 } + serialization-dispatcher { + type = Dispatcher + executor = "fork-join-executor" + 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 = 2.0 + # Max number of threads to cap factor-based parallelism number to + parallelism-max = 15 + } + throughput = 1 + } + + shard-dispatcher { + type = Dispatcher + executor = "default-executor" + + # We use a ControlAwareMailbox so that raft messages that implement ControlMessage + # are given higher priority. + mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox" + } + akka { loglevel = "INFO" loggers = ["akka.event.slf4j.Slf4jLogger"] @@ -61,39 +84,53 @@ odl-cluster-data { } remote { log-remote-lifecycle-events = off + netty.tcp { - hostname = "127.0.0.1" - port = 2550 maximum-frame-size = 419430400 send-buffer-size = 52428800 receive-buffer-size = 52428800 } + + artery { + advanced { + #maximum-frame-size = 256 KiB + #maximum-large-frame-size = 2 MiB + } + } } cluster { - seed-nodes = ["akka.tcp://opendaylight-cluster-data@127.0.0.1:2550"] - seed-node-timeout = 12s - + # Following is an excerpt from Akka Cluster Documentation # link - http://doc.akka.io/docs/akka/snapshot/java/cluster-usage.html # Warning - Akka recommends against using the auto-down feature of Akka Cluster in production. - # This is crucial for correct behavior if you use Cluster Singleton or Cluster Sharding, + # This is crucial for correct behavior if you use Cluster Singleton or Cluster Sharding, # especially together with Akka Persistence. #auto-down-unreachable-after = 30s allow-weakly-up-members = on - roles = [ - "member-1" - ] + use-dispatcher = cluster-dispatcher + failure-detector.acceptable-heartbeat-pause = 3 s } persistence { journal.plugin = akka.persistence.journal.leveldb + + snapshot-store.local.class = "org.opendaylight.controller.cluster.persistence.LocalSnapshotStore" 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 + } + } }