原文地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/_discovery_configuration_check.html, 原文档版权归 www.elastic.co 所有
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Discovery configuration checkedit
By default, when Elasticsearch first starts up it will try and discover other nodes running on the same host. If no elected master can be discovered within a few seconds then Elasticsearch will form a cluster that includes any other nodes that were discovered. It is useful to be able to form this cluster without any extra configuration in development mode, but this is unsuitable for production because it’s possible to form multiple clusters and lose data as a result.
This bootstrap check ensures that discovery is not running with the default configuration. It can be satisfied by setting at least one of the following properties:
-
discovery.seed_hosts
-
discovery.seed_providers
-
cluster.initial_master_nodes