-
Notifications
You must be signed in to change notification settings - Fork 313
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
Allow multiple nodes per IP #804
Allow multiple nodes per IP #804
Conversation
With this commit we expose a new provisioner variable `all_node_names` which consists of all Elasticsearch node names in the cluster. This can be used to set `cluster.initial_master_nodes` in order to ensure the discovery process takes all nodes into account even if they are started on the same host. Previously we have used the IP address for this purpose but this is ambiguous when multiple nodes are started on the same host.
With this commit we use the Elasticsearch node name instead of its IP to configure `cluster.initial_master_nodes`. This avoids any ambiguity in case multiple nodes are configured per host. For backwards-compatibility we fallback to previous behavior if the template variable `all_node_names` is undefined. Relates elastic/rally#804
Note: This requires elastic/rally-teams#34 to work as intended. |
Should we add anything to the documentation at all to mention that starting with multiple nodes on same ip address is possible now? |
Actually this was always meant to be possible and in fact multiple nodes also start up on a single host. The problem was that the nodes did not form a cluster due to misconfigured discovery settings in that case. |
makes sense, thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
Thanks for your review! :) |
With this commit we use the Elasticsearch node name instead of its IP to configure `cluster.initial_master_nodes`. This avoids any ambiguity in case multiple nodes are configured per host. For backwards-compatibility we fallback to previous behavior if the template variable `all_node_names` is undefined. Relates elastic/rally#804 Relates #34
With this commit we use the Elasticsearch node name instead of its IP to configure `cluster.initial_master_nodes`. This avoids any ambiguity in case multiple nodes are configured per host. For backwards-compatibility we fallback to previous behavior if the template variable `all_node_names` is undefined. Relates elastic/rally#804 Relates #34
With this commit we expose a new provisioner variable
all_node_names
which consists of all Elasticsearch node names in the cluster. This can
be used to set
cluster.initial_master_nodes
in order to ensure thediscovery process takes all nodes into account even if they are started
on the same host. Previously we have used the IP address for this
purpose but this is ambiguous when multiple nodes are started on the
same host.