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=8e310815faed92617d626d14a5433bd61664a00b;hpb=4a8688c9d42c0be307383f0483c819cb7a78d26d;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 8e310815fa..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,4 @@ -odl-cluster-rpc{ +odl-cluster-rpc { bounded-mailbox { mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" mailbox-capacity = 1000 @@ -22,23 +22,26 @@ odl-cluster-rpc{ log-sent-messages = on log-remote-lifecycle-events = off - netty.tcp { - hostname = "127.0.0.1" - port = 2550 + artery { + enabled = on + canonical.hostname = "127.0.0.1" + canonical.port = 2550 } } cluster { - seed-nodes = ["akka.tcp://opendaylight-rpc@127.0.0.1:2550"] + seed-nodes = ["akka://opendaylight-rpc@127.0.0.1:2550"] auto-down-unreachable-after = 10s } } } -unit-test{ +unit-test { akka { 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" @@ -46,9 +49,20 @@ unit-test{ 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 @@ -56,7 +70,10 @@ memberA{ } akka { loglevel = "INFO" - #loggers = ["akka.event.slf4j.Slf4jLogger"] + 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 { @@ -68,20 +85,31 @@ memberA{ 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 @@ -89,7 +117,10 @@ memberB{ } akka { loglevel = "INFO" - #loggers = ["akka.event.slf4j.Slf4jLogger"] + loggers = ["akka.event.slf4j.Slf4jLogger"] + + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" actor { provider = "akka.cluster.ClusterActorRefProvider" @@ -102,20 +133,31 @@ memberB{ 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 @@ -123,7 +165,11 @@ memberC{ } akka { loglevel = "INFO" - #loggers = ["akka.event.slf4j.Slf4jLogger"] + 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 { @@ -135,17 +181,28 @@ memberC{ 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 } } + 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" + } }