Bug 4866: Add wait/retries for routed RPCs
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / test / resources / application.conf
index 874d3fcb90a412169c9ddd7c00c4d9dfbd25354e..f22b4eafb390fac9774afbe301bd5d375f1ec9c9 100644 (file)
@@ -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
@@ -17,13 +23,13 @@ odl-cluster{
 
       log-remote-lifecycle-events = off
       netty.tcp {
-        hostname = "localhost"
-        port = 2551
+        hostname = "127.0.0.1"
+        port = 2550
       }
     }
 
     cluster {
-      seed-nodes = ["akka.tcp://opendaylight-rpc@localhost:2551"]
+      seed-nodes = ["akka.tcp://opendaylight-rpc@127.0.0.1:2550"]
 
       auto-down-unreachable-after = 10s
     }
@@ -31,20 +37,31 @@ odl-cluster{
 }
 unit-test{
   akka {
-    loglevel = "INFO"
-    loggers = ["akka.event.slf4j.Slf4jLogger"]
-    actor {
-      provider = "akka.cluster.ClusterActorRefProvider"
-    }
+    loglevel = "DEBUG"
+    #loggers = ["akka.event.slf4j.Slf4jLogger"]
+  }
+  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
   }
 }
 
 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"]
     actor {
       provider = "akka.cluster.ClusterActorRefProvider"
+      debug {
+        #lifecycle = on
+      }
     }
     remote {
       log-received-messages = off
@@ -52,24 +69,33 @@ memberA{
 
       log-remote-lifecycle-events = off
       netty.tcp {
-        hostname = "localhost"
+        hostname = "127.0.0.1"
         port = 2551
       }
     }
 
     cluster {
-      seed-nodes = ["akka.tcp://opendaylight-rpc@localhost:2551"]
+      seed-nodes = ["akka.tcp://opendaylight-rpc@127.0.0.1:2551"]
 
       auto-down-unreachable-after = 10s
     }
   }
 }
 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"]
+
     actor {
       provider = "akka.cluster.ClusterActorRefProvider"
+      debug {
+        #lifecycle = on
+      }
     }
     remote {
       log-received-messages = off
@@ -77,24 +103,32 @@ memberB{
 
       log-remote-lifecycle-events = off
       netty.tcp {
-        hostname = "localhost"
+        hostname = "127.0.0.1"
         port = 2552
       }
     }
 
     cluster {
-      seed-nodes = ["akka.tcp://opendaylight-rpc@localhost:2551"]
+      seed-nodes = ["akka.tcp://opendaylight-rpc@127.0.0.1:2551"]
 
       auto-down-unreachable-after = 10s
     }
   }
 }
 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"]
     actor {
       provider = "akka.cluster.ClusterActorRefProvider"
+      debug {
+        #lifecycle = on
+      }
     }
     remote {
       log-received-messages = off
@@ -102,15 +136,16 @@ memberC{
 
       log-remote-lifecycle-events = off
       netty.tcp {
-        hostname = "localhost"
+        hostname = "127.0.0.1"
         port = 2553
       }
     }
 
     cluster {
-      seed-nodes = ["akka.tcp://opendaylight-rpc@localhost:2551"]
+      seed-nodes = ["akka.tcp://opendaylight-rpc@127.0.0.1:2551"]
 
       auto-down-unreachable-after = 10s
     }
   }
-}
\ No newline at end of file
+}
+