How Seed Nodes Work?

How Seed Nodes Work :
  1. When a new node starts, it uses the seed node list to find an existing member of the cluster.
  2. The new node sends a Join message to the first reachable seed node.
  3. If the seed node is part of the cluster, it forwards the Join request to the cluster leader.
  4. The cluster leader decides whether the new node can join the cluster. If approved, the new node becomes part of the cluster.
Configuration of Seed Nodes :

Seed nodes are defined in the application.conf file under the akka.cluster.seed-nodes setting.

akka {
  actor.provider = cluster
  remote.artery.canonical.hostname = "127.0.0.1"
  remote.artery.canonical.port = 2551
  cluster {
    seed-nodes = [
      "akka://ClusterSystem@127.0.0.1:2551",
      "akka://ClusterSystem@127.0.0.1:2552"
    ]
  }
}