X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-remoterpc-connector%2Fsrc%2Ftest%2Fresources%2Fapplication.conf;h=11ad5eceb72638703ade0672dbca6ac15519a4a2;hb=85c74b453906bd9484d86535e39575f304d66348;hp=459eb78903b6dc09b0739b49198a71d71f05c2f2;hpb=cddd0f1941449af025a67a6cfd769f3caa7a1370;p=controller.git diff --git a/opendaylight/md-sal/sal-remoterpc-connector/src/test/resources/application.conf b/opendaylight/md-sal/sal-remoterpc-connector/src/test/resources/application.conf index 459eb78903..11ad5eceb7 100644 --- a/opendaylight/md-sal/sal-remoterpc-connector/src/test/resources/application.conf +++ b/opendaylight/md-sal/sal-remoterpc-connector/src/test/resources/application.conf @@ -1,4 +1,10 @@ -odl-cluster{ +odl-cluster-rpc { + bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + mailbox-capacity = 1000 + mailbox-push-timeout-time = 10ms + } + akka { loglevel = "INFO" #log-config-on-start = on @@ -16,101 +22,187 @@ odl-cluster{ log-sent-messages = on log-remote-lifecycle-events = off - netty.tcp { - hostname = "127.0.0.1" - port = 2551 + artery { + enabled = on + canonical.hostname = "127.0.0.1" + canonical.port = 2550 } } cluster { - seed-nodes = ["akka.tcp://opendaylight-rpc@127.0.0.1:2551"] + seed-nodes = ["akka://opendaylight-rpc@127.0.0.1:2550"] auto-down-unreachable-after = 10s } } } -unit-test{ +unit-test { akka { - loglevel = "INFO" - loggers = ["akka.event.slf4j.Slf4jLogger"] - actor { - provider = "akka.cluster.ClusterActorRefProvider" - } + loglevel = "DEBUG" + #loggers = ["akka.event.slf4j.Slf4jLogger"] + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" + } + bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + #mailbox-capacity is specified in config subsystem + mailbox-capacity = 1000 + mailbox-push-timeout-time = 10ms + } + + in-memory-journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + in-memory-snapshot-store { + # Class name of the plugin. + class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore" + # Dispatcher for the plugin actor. + plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher" } } -memberA{ +memberA { + bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + mailbox-capacity = 1000 + mailbox-push-timeout-time = 10ms + } akka { loglevel = "INFO" loggers = ["akka.event.slf4j.Slf4jLogger"] + + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" actor { provider = "akka.cluster.ClusterActorRefProvider" + debug { + #lifecycle = on + } } remote { log-received-messages = off log-sent-messages = off log-remote-lifecycle-events = off - netty.tcp { - hostname = "127.0.0.1" - port = 2551 + artery { + enabled = on + canonical.hostname = "127.0.0.1" + canonical.port = 2551 } } cluster { - seed-nodes = ["akka.tcp://opendaylight-rpc@127.0.0.1:2551"] + seed-nodes = ["akka://opendaylight-rpc@127.0.0.1:2551"] auto-down-unreachable-after = 10s } } + in-memory-journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + in-memory-snapshot-store { + # Class name of the plugin. + class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore" + # Dispatcher for the plugin actor. + plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher" + } } -memberB{ +memberB { + bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + mailbox-capacity = 1000 + mailbox-push-timeout-time = 10ms + } akka { loglevel = "INFO" loggers = ["akka.event.slf4j.Slf4jLogger"] + + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" + actor { provider = "akka.cluster.ClusterActorRefProvider" + debug { + #lifecycle = on + } } remote { log-received-messages = off log-sent-messages = off log-remote-lifecycle-events = off - netty.tcp { - hostname = "127.0.0.1" - port = 2552 + artery { + enabled = on + canonical.hostname = "127.0.0.1" + canonical.port = 2552 } } cluster { - seed-nodes = ["akka.tcp://opendaylight-rpc@127.0.0.1:2551"] + seed-nodes = ["akka://opendaylight-rpc@127.0.0.1:2551"] auto-down-unreachable-after = 10s } } + in-memory-journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + in-memory-snapshot-store { + # Class name of the plugin. + class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore" + # Dispatcher for the plugin actor. + plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher" + } } -memberC{ +memberC { + bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + mailbox-capacity = 1000 + mailbox-push-timeout-time = 10ms + } akka { loglevel = "INFO" loggers = ["akka.event.slf4j.Slf4jLogger"] + + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" + actor { provider = "akka.cluster.ClusterActorRefProvider" + debug { + #lifecycle = on + } } remote { log-received-messages = off log-sent-messages = off log-remote-lifecycle-events = off - netty.tcp { - hostname = "127.0.0.1" - port = 2553 + artery { + enabled = on + canonical.hostname = "127.0.0.1" + canonical.port = 2553 } } cluster { - seed-nodes = ["akka.tcp://opendaylight-rpc@127.0.0.1:2551"] + seed-nodes = ["akka://opendaylight-rpc@127.0.0.1:2551"] auto-down-unreachable-after = 10s } } -} \ No newline at end of file + in-memory-journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + in-memory-snapshot-store { + # Class name of the plugin. + class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore" + # Dispatcher for the plugin actor. + plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher" + } +} +