--- /dev/null
+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
+ }
+ }
+}
#!/bin/sh
BASEDIR=$(dirname "$0")
-#echo "${BASEDIR}"
cd ${BASEDIR}
rm -rf cache
rm -rf target
+# check if default ports must be overriden
+if [ -z "$USE_ODL_ALT_RESTCONF_PORT" ]; then
+ RESTCONF_PORT=8181
+else
+ RESTCONF_PORT=$USE_ODL_ALT_RESTCONF_PORT
+fi
+if [ -z "$USE_ODL_ALT_WEBSOCKET_PORT" ]; then
+ WEBSOCKET_PORT=8185
+else
+ WEBSOCKET_PORT=$USE_ODL_ALT_WEBSOCKET_PORT
+fi
+if [ -z "$USE_ODL_ALT_AKKA_PORT" ]; then
+ AKKA_PORT=2550
+else
+ AKKA_PORT=$USE_ODL_ALT_AKKA_PORT
+fi
+if [ -z "$USE_ODL_ALT_AKKA_MGT_PORT" ]; then
+ AKKA_MGT_PORT=8558
+else
+ AKKA_MGT_PORT=$USE_ODL_ALT_AKKA_MGT_PORT
+fi
+
+# generate appropriate configuration files
+cat config_template.json | sed -e "s/ODL_RESTCONF_PORT/$RESTCONF_PORT/" -e "s/ODL_WEBSOCKET_PORT/$WEBSOCKET_PORT/" >config.json
+cat akka-default_template.conf | sed -e "s/ODL_AKKA_PORT/$AKKA_PORT/" -e "s/ODL_AKKA_MGT_PORT/$AKKA_MGT_PORT/" >singlenode/akka-default.conf
+
#start controller
-java -ms128m -mx512m -XX:MaxMetaspaceSize=128m -jar tpce.jar
+java -ms128m -mx512m -XX:MaxMetaspaceSize=128m -jar tpce.jar -restconf config.json