I have a 6 node docker swarm cluster in which I would like to have 3 elasticsearch masters. The remaining nodes will be data nodes. The elasticsearch cluster will be behind a reverse proxy.
What elasticsearch configuration will I need to set to spin up an elasticsearch cluster in docker swarm global mode? I will really appreciate any suggestion.
As far as I can tell, Docker Swarm doesn't offer the ability to auto-generate a set of predictable node names for the master nodes as, say, a Kubernetes StatefulSet does. This does makes bootstrapping the cluster a bit difficult. One idea: you could start with a single "bootstrap" master node with a predictable name, then add the three normal master nodes to it, then shut the bootstrap master down.
Another idea: you can start each of your masters as a separate service with a fixed name. This is what the suggested docker-compose.yml file in the reference manual does.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.