|
@@ -10,11 +10,22 @@ data folder and freshly-started nodes that are joining an existing cluster
|
|
|
obtain this information from the cluster's elected master.
|
|
|
|
|
|
The initial set of master-eligible nodes is defined in the
|
|
|
-<<initial_master_nodes,`cluster.initial_master_nodes` setting>>. This is a list
|
|
|
-of the <<node.name,node names>> or IP addresses of the master-eligible nodes in
|
|
|
-the new cluster. If you do not configure `node.name` then it is set to the
|
|
|
-node's hostname, so in this case you can use hostnames in
|
|
|
-`cluster.initial_master_nodes` too.
|
|
|
+<<initial_master_nodes,`cluster.initial_master_nodes` setting>>. This should be
|
|
|
+set to a list containing one of the following items for each master-eligible
|
|
|
+node:
|
|
|
+
|
|
|
+- The <<node.name,node name>> of the node.
|
|
|
+- The node's hostname if `node.name` is not set, because `node.name` defaults
|
|
|
+ to the node's hostname. You must use either the fully-qualified hostname or
|
|
|
+ the bare hostname <<modules-discovery-bootstrap-cluster-fqdns,depending on
|
|
|
+ your system configuration>>.
|
|
|
+- The IP address of the node's <<modules-transport,publish address>>, if it is
|
|
|
+ not possible to use the `node.name` of the node. This is normally the IP
|
|
|
+ address to which <<common-network-settings,`network.host`>> resolves but
|
|
|
+ <<advanced-network-settings,this can be overridden>>.
|
|
|
+- The IP address and port of the node's publish address, in the form `IP:PORT`,
|
|
|
+ if it is not possible to use the `node.name` of the node and there are
|
|
|
+ multiple nodes sharing a single IP address.
|
|
|
|
|
|
When you start a master-eligible node, you can provide this setting on the
|
|
|
command line or in the `elasticsearch.yml` file. After the cluster has formed,
|
|
@@ -47,9 +58,9 @@ cluster.initial_master_nodes:
|
|
|
- master-c
|
|
|
--------------------------------------------------
|
|
|
|
|
|
-You can use a mix of IP addresses and node names too. If there is more than one
|
|
|
-Elasticsearch node with the same IP address then the transport port must also
|
|
|
-be given to specify exactly which node is meant:
|
|
|
+If it is not possible to use the names of the nodes then you can also use IP
|
|
|
+addresses, or IP addresses and ports, or even a mix of IP addresses and node
|
|
|
+names:
|
|
|
|
|
|
[source,yaml]
|
|
|
--------------------------------------------------
|
|
@@ -57,7 +68,7 @@ cluster.initial_master_nodes:
|
|
|
- 10.0.10.101
|
|
|
- 10.0.10.102:9300
|
|
|
- 10.0.10.102:9301
|
|
|
- - master-node-hostname
|
|
|
+ - master-node-name
|
|
|
--------------------------------------------------
|
|
|
|
|
|
Like all node settings, it is also possible to specify the initial set of master
|