Use Akka artery for remote transport
[controller.git] / opendaylight / md-sal / sal-clustering-config / src / main / resources / initial / akka.conf
index 05322137aafc2d62b6b18e548a419be91446aeeb..31e54601dc6bf5e79b9103e2cdcb0d1dba5831be 100644 (file)
@@ -1,65 +1,39 @@
 
 odl-cluster-data {
-  bounded-mailbox {
-    mailbox-type = "org.opendaylight.controller.common.actor.MeteredBoundedMailbox"
-    mailbox-capacity = 1000
-    mailbox-push-timeout-time = 100ms
-  }    
   akka {
-    actor {
-      provider = "akka.cluster.ClusterActorRefProvider"
-      serializers {
-                java = "akka.serialization.JavaSerializer"
-                proto = "akka.remote.serialization.ProtobufSerializer"
-              }
-
-              serialization-bindings {
-                  "com.google.protobuf.Message" = proto
-
-              }
-    }
     remote {
-      log-remote-lifecycle-events = off
-      netty.tcp {
-        hostname = "<CHANGE_ME>"
-        port = 2550
-        maximum-frame-size = 419430400
-        send-buffer-size = 52428800
-        receive-buffer-size = 52428800
+      artery {
+        enabled = on
+        canonical.hostname = "127.0.0.1"
+        canonical.port = 2550
       }
     }
 
     cluster {
-      seed-nodes = ["akka.tcp://opendaylight-cluster-data@<CHANGE_SEED_IP>:2550"]
-
-      auto-down-unreachable-after = 10s
-    }
-  }
-}
+      seed-nodes = ["akka://opendaylight-cluster-data@127.0.0.1:2550"]
 
-odl-cluster-rpc {
-  bounded-mailbox {
-    mailbox-type = "org.opendaylight.controller.common.actor.MeteredBoundedMailbox"
-    mailbox-capacity = 1000
-    mailbox-push-timeout-time = 100ms
-  }
-  akka {
-    actor {
-      provider = "akka.cluster.ClusterActorRefProvider"
+      roles = [
+        "member-1"
+      ]
 
     }
-    remote {
-      log-remote-lifecycle-events = off
-      netty.tcp {
-        hostname = "<CHANGE_ME>"
-        port = 2551
+    
+    persistence {
+      # By default the snapshots/journal directories live in KARAF_HOME. You can choose to put it somewhere else by
+      # modifying the following two properties. The directory location specified may be a relative or absolute path. 
+      # The relative path is always relative to KARAF_HOME.
+
+      # snapshot-store.local.dir = "target/snapshots"
+      # journal.leveldb.dir = "target/journal"
+
+      journal {
+        leveldb {
+          # Set native = off to use a Java-only implementation of leveldb.
+          # Note that the Java-only version is not currently considered by Akka to be production quality.
+
+          # native = off
+        }
       }
     }
-
-    cluster {
-      seed-nodes = ["akka.tcp://opendaylight-cluster-rpc@<CHANGE_SEED_IP>:2551"]
-
-      auto-down-unreachable-after = 10s
-    }
   }
 }