|
@@ -14,19 +14,20 @@ each other and elect a master node.
|
|
|
|
|
|
Out of the box, without any network configuration, Elasticsearch will bind to
|
|
|
the available loopback addresses and will scan local ports 9300 to 9305 to try
|
|
|
-to connect to other nodes running on the same server. This provides an auto-
|
|
|
-clustering experience without having to do any configuration.
|
|
|
+to connect to other nodes running on the same server. This provides an
|
|
|
+auto-clustering experience without having to do any configuration.
|
|
|
|
|
|
-When you want to form a cluster with nodes on other hosts, you must use the
|
|
|
+When you want to form a cluster with nodes on other hosts, you should use the
|
|
|
`discovery.seed_hosts` setting to provide a list of other nodes in the cluster
|
|
|
that are master-eligible and likely to be live and contactable in order to seed
|
|
|
the <<modules-discovery-hosts-providers,discovery process>>. This setting
|
|
|
-should normally contain the addresses of all the master-eligible nodes in the
|
|
|
-cluster. This setting contains either an array of hosts or a comma-delimited
|
|
|
-string. Each value should be in the form of `host:port` or `host` (where `port`
|
|
|
-defaults to the setting `transport.profiles.default.port` falling back to
|
|
|
-`transport.port` if not set). Note that IPv6 hosts must be bracketed. The
|
|
|
-default for this setting is `127.0.0.1, [::1]`.
|
|
|
+should be a list of the addresses of all the master-eligible nodes in the
|
|
|
+cluster. Each address can be either an IP address or a hostname which resolves
|
|
|
+to one or more IP addresses via DNS.
|
|
|
+
|
|
|
+If your master-eligible nodes do not have fixed names or addresses, use an
|
|
|
+<<built-in-hosts-providers,alternative hosts provider>> to find their addresses
|
|
|
+dynamically.
|
|
|
|
|
|
[float]
|
|
|
[[initial_master_nodes]]
|
|
@@ -50,16 +51,18 @@ discovery.seed_hosts:
|
|
|
- 192.168.1.10:9300
|
|
|
- 192.168.1.11 <1>
|
|
|
- seeds.mydomain.com <2>
|
|
|
-cluster.initial_master_nodes: <3>
|
|
|
+ - [0:0:0:0:0:ffff:c0a8:10c]:9301 <3>
|
|
|
+cluster.initial_master_nodes: <4>
|
|
|
- master-node-a
|
|
|
- master-node-b
|
|
|
- master-node-c
|
|
|
--------------------------------------------------
|
|
|
-<1> The port will default to `transport.profiles.default.port` and fallback to
|
|
|
- `transport.port` if not specified.
|
|
|
+<1> The port is optional and usually defaults to `9300`, but this default can
|
|
|
+ be <<built-in-hosts-providers,overridden>> by certain settings.
|
|
|
<2> If a hostname resolves to multiple IP addresses then the node will attempt to
|
|
|
discover other nodes at all resolved addresses.
|
|
|
-<3> The initial master nodes should be identified by their
|
|
|
+<3> IPv6 addresses must be enclosed in square brackets.
|
|
|
+<4> The initial master nodes should be identified by their
|
|
|
<<node.name,`node.name`>>, which defaults to their hostname. Make sure that
|
|
|
the value in `cluster.initial_master_nodes` matches the `node.name`
|
|
|
exactly. If you use a fully-qualified domain name such as
|