Skip to content

Instantly share code, notes, and snippets.

@uzxmx
Created February 25, 2020 08:47
Show Gist options
  • Save uzxmx/7288f8a38be58372f5a96e4880016d7e to your computer and use it in GitHub Desktop.
Save uzxmx/7288f8a38be58372f5a96e4880016d7e to your computer and use it in GitHub Desktop.
Upgrade Elasticsearch from 6.x to 6.8

Disable shard allocation

curl -X PUT "localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d'
{
  "persistent": {
    "cluster.routing.allocation.enable": "primaries"
  }
}
'

Questions

  • If the node to be shutdown has primary shards, what will happen? If it has replica shards, what will happen? What will the allocation process do?

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment