2.2 Spotlight: Configure Seed Nodes from Command Line

The Typesafe Config library has been updated to version 1.0.1 to support a new syntax for string lists from the command line. This is useful when defining the cluster seed nodes from a start script.

In the configuration file you would define:


akka.cluster.seed-nodes = [
  "akka.tcp://ClusterSystem@host1:2552",
  "akka.tcp://ClusterSystem@host2:2552"]

Corresponding command line parameters:


-Dakka.cluster.seed-nodes.0=akka.tcp://ClusterSystem@host1:2552
-Dakka.cluster.seed-nodes.1=akka.tcp://ClusterSystem@host2:2552

Recent comments

Blog comments powered by Disqus