2017-08-23 17:03:14 -04:00
|
|
|
|
2018-05-29 03:34:20 -04:00
|
|
|
When you shut down a node, the allocation process waits for
|
|
|
|
`index.unassigned.node_left.delayed_timeout` (by default, one minute) before
|
|
|
|
starting to replicate the shards on that node to other nodes in the cluster,
|
|
|
|
which can involve a lot of I/O. Since the node is shortly going to be
|
2019-03-27 09:17:29 -04:00
|
|
|
restarted, this I/O is unnecessary. You can avoid racing the clock by
|
2020-06-01 13:15:08 -04:00
|
|
|
<<cluster-routing-allocation-enable,disabling allocation>> of replicas before
|
|
|
|
shutting down the node:
|
2017-08-23 17:03:14 -04:00
|
|
|
|
2019-09-05 10:11:25 -04:00
|
|
|
[source,console]
|
2017-08-23 17:03:14 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
PUT _cluster/settings
|
|
|
|
{
|
|
|
|
"persistent": {
|
2019-03-27 09:17:29 -04:00
|
|
|
"cluster.routing.allocation.enable": "primaries"
|
2017-08-23 17:03:14 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
2019-03-27 09:17:29 -04:00
|
|
|
// TEST[skip:indexes don't assign]
|