Allow Lighty build to listen to alternative ports
[transportpce.git] / lighty / src / main / assembly / resources / akka-default_template.conf
diff --git a/lighty/src/main/assembly/resources/akka-default_template.conf b/lighty/src/main/assembly/resources/akka-default_template.conf
new file mode 100644 (file)
index 0000000..a383c86
--- /dev/null
@@ -0,0 +1,56 @@
+akka {
+  remote {
+    artery {
+      enabled = off
+      canonical.hostname = "127.0.0.1"
+      canonical.port = ODL_AKKA_PORT
+    }
+    classic.netty.tcp {
+      hostname = "127.0.0.1"
+      port = ODL_AKKA_PORT
+    }
+    # when under load we might trip a false positive on the failure detector
+    # transport-failure-detector {
+    # heartbeat-interval = 4 s
+    # acceptable-heartbeat-pause = 16s
+    # }
+  }
+
+  actor {
+    provider = "akka.cluster.ClusterActorRefProvider"
+  }
+
+  discovery {
+    method = akka-dns
+  }
+
+  cluster {
+    # Remove ".tcp" when using artery.
+    seed-nodes = ["akka.tcp://opendaylight-cluster-data@127.0.0.1:ODL_AKKA_PORT"]
+
+    roles = [
+      "member-1"
+    ]
+
+  }
+
+  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"
+
+    # Use lz4 compression for LocalSnapshotStore snapshots
+    snapshot-store.local.use-lz4-compression = false
+    # Size of blocks for lz4 compression: 64KB, 256KB, 1MB or 4MB
+    snapshot-store.local.lz4-blocksize = 256KB
+
+  }
+  disable-default-actor-system-quarantined-event-handling = "false"
+  management {
+      http {
+         port = ODL_AKKA_MGT_PORT
+      }
+  }
+}