Docker Community Forums

Share and learn in the Docker community.

General way to create some cluster where nodes must advertise their hostname/ip


(Guenther) #1


I want to create an Elasticsearch-Cluster, but my problem seems not to be just restricted to ES.

  • A service which should be scaled to several nodes
  • Each task must initially connect to one “master” node -> Get information about other tasks from that “master” (gossipping)
  • Each task must advertise its address to the “master” to be available for other tasks

So my problems are:

  • What is the address of the “master” node
  • How to get the correct IP-Address for advertising (so the correct own IP-Address of the task)