Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: pointing to ES 7.17 rolling upgrade step since "current" 8.x instructions have moved.

...

  1. Set the discovery.zen.minimum_master_nodes value in the /etc/elasticsearch/elasticsearch.yml config file to be: (number of master-eligible-nodes/2, rounded down) + 1 when the elasticsearch cluster is first configured.
    Verify the number is smaller than the number of currently available nodes. Run the following command now to set that number to be <current_min_master_nodes>: (current number of master-eligible-nodes/2, rounded down) + 1 if not.

    Code Block
    languagebash
    curl -s -XPUT 'http://ES_NODE:9200/_cluster/settings' \
    	--data-binary '{"transient": {"discovery.zen.minimum_master_nodes" : "<current_min_master_nodes>"}}'
  2. Follow the Elasticsearch rolling restart procedure for the version:

  3. This step is only needed if using an elasticsearch version before Elasticsearch 7. Reset discovery.zen.minimum_master_nodes to its original value, or adjust it based on the current number of expected available nodes after completing the rolling restart:

    Code Block
    languagebash
    curl -s -XPUT 'http://ES_NODE:9200/_cluster/settings' \
    	--data-binary '{"transient": {"discovery.zen.minimum_master_nodes" : "<original_min_master_nodes>"}}'