pires / kubernetes-elasticsearch-cluster

Elasticsearch cluster on top of Kubernetes made easy.
Apache License 2.0
1.51k stars 690 forks source link

Master nodes with unpredictable names #197

Open rocketraman opened 6 years ago

rocketraman commented 6 years ago

Another problem I've found running clusters with this setup: if all the master nodes go down for some reason (I had this issue with my masters after applying an updated Deployment), the client/data nodes do not automatically recover.

This is because the client/data nodes are still looking to connect to the old master node names, none of which exist any longer. I don't know if this is a bug in the zen discovery protocol, or expected behavior, but the client/data nodes simply do not recover without a restart.

Its possible that this could be solved by giving the master nodes a stable identity, which in turn could be achieved by making the master nodes a StatefulSet. Even though they actually require no state in terms of persistent disk, their name is the "state" being persisted.