OpenSearch/docs/reference/upgrade/disable-shard-alloc.asciidoc
debadair 25ec068aef
[DOCS] Added link to upgrade guide and bumped the upgrade topic up to the top level (#27621)
* [DOCS] Added link to the upgrade guide & tweaked the intro.

* [DOCS] Bumped upgrade topic up to the top level of the TOC
2017-12-05 10:58:52 -08:00

17 lines
527 B
Plaintext

When you shut down a node, the allocation process waits for one minute
before starting to replicate the shards on that node to other nodes
in the cluster, causing a lot of wasted I/O. You can avoid racing the clock
by disabling allocation before shutting down the node:
[source,js]
--------------------------------------------------
PUT _cluster/settings
{
"persistent": {
"cluster.routing.allocation.enable": "none"
}
}
--------------------------------------------------
// CONSOLE
// TEST[skip:indexes don't assign]