Skip to content

Instantly share code, notes, and snippets.

@uzxmx
Created February 25, 2020 08:47
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