File tree 3 files changed +33
-3
lines changed
3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 2
2
=== File-Based Discovery Plugin
3
3
4
4
The functionality provided by the `discovery-file` plugin is now available in
5
- Elasticsearch without requiring a plugin. This plugin still exists for backwards
6
- compatibility, but it no longer does anything and will be removed in a future
7
- version.
5
+ Elasticsearch without requiring a plugin. This plugin still exists to ensure
6
+ backwards compatibility, but it will be removed in a future version.
7
+
8
+ On installation, this plugin creates a file at
9
+ `$ES_PATH_CONF/discovery-file/unicast_hosts.txt` that comprises comments that
10
+ describe how to use it. It is preferable not to install this plugin and instead
11
+ to create this file, and its containing directory, using standard tools.
8
12
9
13
:plugin_name: discovery-file
10
14
include::install_remove.asciidoc[]
Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ esplugin {
26
26
classname ' org.elasticsearch.discovery.file.FileBasedDiscoveryPlugin'
27
27
}
28
28
29
+ bundlePlugin {
30
+ from(' config/discovery-file' ) {
31
+ into ' config'
32
+ }
33
+ }
34
+
29
35
task setupSeedNodeAndUnicastHostsFile (type : DefaultTask ) {
30
36
mustRunAfter(precommit)
31
37
}
Original file line number Diff line number Diff line change
1
+ # The unicast_hosts.txt file contains the list of unicast hosts to connect to
2
+ # for pinging during the discovery process, when using the file-based discovery
3
+ # mechanism. This file should contain one entry per line, where an entry is a
4
+ # host/port combination. The host and port should be separated by a `:`. If
5
+ # the port is left off, a default port of 9300 is assumed. For example, if the
6
+ # cluster has three nodes that participate in the discovery process:
7
+ # (1) 66.77.88.99 running on port 9300 (2) 66.77.88.100 running on port 9305
8
+ # and (3) 66.77.88.99 running on port 10005, then this file should contain the
9
+ # following text:
10
+ #
11
+ #10.10.10.5
12
+ #10.10.10.6:9305
13
+ #10.10.10.5:10005
14
+ #
15
+ # For IPv6 addresses, make sure to put a bracket around the host part of the address,
16
+ # for example: [2001:cdba:0000:0000:0000:0000:3257:9652]:9301 (where 9301 is the port).
17
+ #
18
+ # NOTE: all lines starting with a `#` are comments, and comments must exist
19
+ # on lines of their own (i.e. comments cannot begin in the middle of a line)
20
+ #
You can’t perform that action at this time.
0 commit comments