mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
47859e56ac
Today we support a static list of seed hosts in core Elasticsearch, and allow a dynamic list of seed hosts to be provided via a file using the `discovery-file` plugin. In fact the ability to provide a dynamic list of seed hosts is increasingly useful, so this change moves this functionality to core Elasticsearch to avoid the need for a plugin. Furthermore, in order to start up nodes in integration tests we currently assign a known port to each node before startup, which unfortunately sometimes fails if another process grabs the selected port in the meantime. By moving the `discovery-file` functionality into the core product we can use it to avoid this race. This change also moves the expected path to the file from `$ES_PATH_CONF/discovery-file/unicast_hosts.txt` to `$ES_PATH_CONF/unicast_hosts.txt`. An example of this file is not included in distributions. For BWC purposes the plugin still exists, but does nothing more than create the example file in the old location, and issue a warning when it is used. We also continue to support the old location for the file, but warn about its deprecation. Relates #29244 Closes #33030
15 lines
620 B
Plaintext
15 lines
620 B
Plaintext
[[discovery-file]]
|
|
=== File-Based Discovery Plugin
|
|
|
|
The functionality provided by the `discovery-file` plugin is now available in
|
|
Elasticsearch without requiring a plugin. This plugin still exists to ensure
|
|
backwards compatibility, but it will be removed in a future version.
|
|
|
|
On installation, this plugin creates a file at
|
|
`$ES_PATH_CONF/discovery-file/unicast_hosts.txt` that comprises comments that
|
|
describe how to use it. It is preferable not to install this plugin and instead
|
|
to create this file, and its containing directory, using standard tools.
|
|
|
|
:plugin_name: discovery-file
|
|
include::install_remove.asciidoc[]
|