-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can only have 1 master, which is not a good practice #1
Comments
Yeah, one master is not a good practice. Let me look into it :). |
According to this by default all nodes are master-eligible. Should our master go down I think we can point the cluster to another node and we should be able to go (that should give enough time to fix/replace the master and be back in the game). Now, this is all not too safe so if we're talking about a production scenario then we need to split node roles and have dedicated master and data nodes. That should still be doable with docker-compose but it requires a more complex setup. I'm happy to jump into a more detailed discussion if you're heading that way. |
Yes off course. The difficult thing in your config is:
In this point, you are able to use My guess for the config, was to use the But as Swarm IP are random, we cannot give a list of IP in unicast.hosts... |
One immediate fix for that is to create 3 master nodes with different names, like es_master1, es_master2 and es_master3. Then it becomes a matter of putting the list of hosts as part of the config. Please note that any node in the ES cluster can act as a master (if it's configuration allows it). Also take a look at this towards the end of the file you'll see it suggests that you should put a list of master nodes and call it a day :). |
Yep. It could be a static solution. I will look for a dynamic solution and tell you when I get it :) |
Multicast is one such but then it's not recommended for production setups. Let me know what you find out. |
This is a great tutorial, thanks!
Now it is limited to have only 1 master isn't it ?
In EK doc, it states:
How should we create a cluster with multiple masters ?
The text was updated successfully, but these errors were encountered: