X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fresources%2Fapplication.conf;h=a24085e13440a6cdc01224e0ae9098372aec7d36;hp=eda1c304e42bcac73e3e8597a3028324732e223e;hb=e66df4e9ae44728c178147fe2462b7138d74810a;hpb=f4b583dd481d8db60c894690a6c9189922f360a9 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/resources/application.conf b/opendaylight/md-sal/sal-distributed-datastore/src/test/resources/application.conf index eda1c304e4..a24085e134 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/resources/application.conf +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/resources/application.conf @@ -1,15 +1,594 @@ akka { - loggers = [akka.testkit.TestEventListener] + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" + coordinated-shutdown.run-by-actor-system-terminate = off + persistence.non-persistent.journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + loggers = ["akka.testkit.TestEventListener", "akka.event.slf4j.Slf4jLogger"] + + actor { + warn-about-java-serializer-usage = false + } +} + +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" +} + +bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + mailbox-capacity = 1000 + mailbox-push-timeout-time = 100ms +} + +test-config { + bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + mailbox-capacity = 1000 + mailbox-push-timeout-time = 100ms + } + + in-memory-journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + in-memory-snapshot-store { + class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore" + plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher" + } + + shard-dispatcher { + type = Dispatcher + executor = "default-executor" + mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox" + } + + akka { + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" + coordinated-shutdown.run-by-actor-system-terminate = off + + persistence.non-persistent.journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + loglevel = "INFO" + + actor { + provider = "akka.cluster.ClusterActorRefProvider" + + serializers { + readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer" + } + + serialization-bindings { + "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal + } + + warn-about-java-serializer-usage = false + } + remote { + classic { + netty.tcp { + hostname = "127.0.0.1" + port = 2565 + } + } + + log-remote-lifecycle-events = off + artery { + enabled = on + canonical.hostname = "127.0.0.1" + canonical.port = 2565 + transport = tcp + } + + netty.tcp { + hostname = "127.0.0.1" + port = 2565 + } + } + + cluster { + retry-unsuccessful-join-after = 100ms + + roles = [ + "member-1" + ] + } + } +} + +Member1 { + bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + mailbox-capacity = 1000 + mailbox-push-timeout-time = 100ms + } + + in-memory-journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + in-memory-snapshot-store { + class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore" + plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher" + } + + shard-dispatcher { + type = Dispatcher + executor = "default-executor" + mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox" + } + + akka { + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" + coordinated-shutdown.run-by-actor-system-terminate = off + + persistence.non-persistent.journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + loglevel = "INFO" + + actor { + provider = "akka.cluster.ClusterActorRefProvider" + + serializers { + readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer" + } + + serialization-bindings { + "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal + } + + warn-about-java-serializer-usage = false + } + remote { + classic { + netty.tcp { + hostname = "127.0.0.1" + port = 2558 + } + } + + log-remote-lifecycle-events = off + artery { + enabled = on + canonical.hostname = "127.0.0.1" + canonical.port = 2558 + transport = tcp + } + + netty.tcp { + hostname = "127.0.0.1" + port = 2558 + } + } + + cluster { + retry-unsuccessful-join-after = 100ms + + roles = [ + "member-1" + ] + } + } +} + +Member2 { + bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + mailbox-capacity = 1000 + mailbox-push-timeout-time = 100ms + } + + in-memory-journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + in-memory-snapshot-store { + class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore" + plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher" + } + + shard-dispatcher { + type = Dispatcher + executor = "default-executor" + mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox" + } + + akka { + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" + coordinated-shutdown.run-by-actor-system-terminate = off + + persistence.non-persistent.journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + actor { + provider = "akka.cluster.ClusterActorRefProvider" + + serializers { + readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer" + } + + serialization-bindings { + "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal + } + + warn-about-java-serializer-usage = false + } + remote { + classic { + netty.tcp { + hostname = "127.0.0.1" + port = 2559 + } + } + + log-remote-lifecycle-events = off + artery { + enabled = on + canonical.hostname = "127.0.0.1" + canonical.port = 2559 + transport = tcp + } + + netty.tcp { + hostname = "127.0.0.1" + port = 2559 + } + } + + cluster { + retry-unsuccessful-join-after = 100ms + + roles = [ + "member-2" + ] + } + } +} + +Member3 { + bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + mailbox-capacity = 1000 + mailbox-push-timeout-time = 100ms + } + + in-memory-journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + in-memory-snapshot-store { + class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore" + plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher" + } + + shard-dispatcher { + type = Dispatcher + executor = "default-executor" + mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox" + } + + akka { + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" + coordinated-shutdown.run-by-actor-system-terminate = off + + persistence.non-persistent.journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + loglevel = "INFO" + + actor { + provider = "akka.cluster.ClusterActorRefProvider" + + serializers { + readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer" + } + + serialization-bindings { + "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal + } + + warn-about-java-serializer-usage = false + } + remote { + classic { + netty.tcp { + hostname = "127.0.0.1" + port = 2557 + } + } + + log-remote-lifecycle-events = off + artery { + enabled = on + canonical.hostname = "127.0.0.1" + canonical.port = 2557 + transport = tcp + } + + netty.tcp { + hostname = "127.0.0.1" + port = 2557 + } + } + + cluster { + retry-unsuccessful-join-after = 100ms + + roles = [ + "member-3" + ] + } + } +} + +Member4 { + bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + mailbox-capacity = 1000 + mailbox-push-timeout-time = 100ms + } + + in-memory-journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + in-memory-snapshot-store { + class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore" + plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher" + } + + shard-dispatcher { + type = Dispatcher + executor = "default-executor" + mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox" + } + + akka { + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" + coordinated-shutdown.run-by-actor-system-terminate = off + + persistence.non-persistent.journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + loglevel = "INFO" + + actor { + provider = "akka.cluster.ClusterActorRefProvider" + + serializers { + readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer" + } + + serialization-bindings { + "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal + } + + warn-about-java-serializer-usage = false + } + remote { + classic { + netty.tcp { + hostname = "127.0.0.1" + port = 2560 + } + } + + log-remote-lifecycle-events = off + artery { + enabled = on + canonical.hostname = "127.0.0.1" + canonical.port = 2560 + transport = tcp + } + + netty.tcp { + hostname = "127.0.0.1" + port = 2560 + } + } + + cluster { + retry-unsuccessful-join-after = 100ms + + roles = [ + "member-4" + ] + } + } +} + +Member5 { + bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + mailbox-capacity = 1000 + mailbox-push-timeout-time = 100ms + } + + in-memory-journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + in-memory-snapshot-store { + class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore" + plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher" + } + + shard-dispatcher { + type = Dispatcher + executor = "default-executor" + mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox" + } + + akka { + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" + coordinated-shutdown.run-by-actor-system-terminate = off + + persistence.non-persistent.journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + loglevel = "INFO" + + actor { + provider = "akka.cluster.ClusterActorRefProvider" + + serializers { + readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer" + } + + serialization-bindings { + "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal + } + + warn-about-java-serializer-usage = false + } + remote { + classic { + netty.tcp { + hostname = "127.0.0.1" + port = 2561 + } + } + + log-remote-lifecycle-events = off + artery { + enabled = on + canonical.hostname = "127.0.0.1" + canonical.port = 2561 + transport = tcp + } + + netty.tcp { + hostname = "127.0.0.1" + port = 2561 + } + } + + cluster { + retry-unsuccessful-join-after = 100ms + + roles = [ + "member-5" + ] + } + } +} + +Member256 { + bounded-mailbox { + mailbox-type = "org.opendaylight.controller.cluster.common.actor.MeteredBoundedMailbox" + mailbox-capacity = 1000 + mailbox-push-timeout-time = 100ms + } + + in-memory-journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + in-memory-snapshot-store { + class = "org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore" + plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher" + } + + shard-dispatcher { + type = Dispatcher + executor = "default-executor" + mailbox-type = "org.opendaylight.controller.cluster.common.actor.UnboundedDequeBasedControlAwareMailbox" + } + + akka { + persistence.snapshot-store.plugin = "in-memory-snapshot-store" + persistence.journal.plugin = "in-memory-journal" + coordinated-shutdown.run-by-actor-system-terminate = off + + persistence.non-persistent.journal { + class = "org.opendaylight.controller.cluster.raft.utils.InMemoryJournal" + } + + loglevel = "INFO" + actor { - serializers { - java = "akka.serialization.JavaSerializer" - proto = "akka.remote.serialization.ProtobufSerializer" - } + provider = "akka.cluster.ClusterActorRefProvider" + + serializers { + readylocal = "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransactionSerializer" + } - serialization-bindings { - "org.opendaylight.controller.cluster.datastore.modification.MutableCompositeModification" = java - "com.google.protobuf.Message" = proto + serialization-bindings { + "org.opendaylight.controller.cluster.datastore.messages.ReadyLocalTransaction" = readylocal + } + warn-about-java-serializer-usage = false + } + remote { + classic { + netty.tcp { + hostname = "127.0.0.1" + port = 2562 } + } + + log-remote-lifecycle-events = off + artery { + enabled = on + canonical.hostname = "127.0.0.1" + canonical.port = 2562 + transport = tcp + } + + netty.tcp { + hostname = "127.0.0.1" + port = 2562 + } + } + + cluster { + retry-unsuccessful-join-after = 100ms + + roles = [ + "member-256" + ] } + } +} + +Member1-without-artery { + akka.remote.artery.enabled = off +} + +Member2-without-artery { + akka.remote.artery.enabled = off +} + +Member3-without-artery { + akka.remote.artery.enabled = off +} + +Member4-without-artery { + akka.remote.artery.enabled = off +} + +Member5-without-artery { + akka.remote.artery.enabled = off }