Skip to content

Commit 9e8c470

Browse files
committed
Improve allocation-disabling instructions
Clarify the “one minute” in the instructions to disable the shard allocation when doing maintenance to say that it is configurable. Add a note about making sure that no rebalancing occurs until the maintenance is complete. Relates elastic#19739.
1 parent 752ba2f commit 9e8c470

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11

2-
When you shut down a node, the allocation process waits for one minute
3-
before starting to replicate the shards on that node to other nodes
4-
in the cluster, causing a lot of wasted I/O. You can avoid racing the clock
5-
by disabling allocation before shutting down the node:
2+
When you shut down a node, the allocation process waits for
3+
`index.unassigned.node_left.delayed_timeout` (by default, one minute) before
4+
starting to replicate the shards on that node to other nodes in the cluster,
5+
which can involve a lot of I/O. Since the node is shortly going to be
6+
restarted, this I/O is unnecessary. You can avoid racing the clock by disabling
7+
allocation before shutting down the node:
68

79
[source,js]
810
--------------------------------------------------
@@ -14,4 +16,14 @@ PUT _cluster/settings
1416
}
1517
--------------------------------------------------
1618
// CONSOLE
17-
// TEST[skip:indexes don't assign]
19+
// TEST[skip:indexes don't assign]
20+
21+
Additionally, the allocation process attempts to keep the shards balanced
22+
across the cluster by performing rebalancing, moving shards between nodes. This
23+
involves I/O that is also unnecessary if the shut-down node will shortly
24+
return, so it is preferable for the cluster not to attempt to perform any
25+
rebalancing until the maintenance is complete. This is the default behaviour,
26+
but can be changed using the `cluster.routing.allocation.allow_rebalance`
27+
setting. Make sure that this setting is unset, or set to the default value of
28+
`indices_all_active`, before continuing.
29+

0 commit comments

Comments
 (0)