Repository navigation
docs: Add disk-space guidance for rolling restarts with fully mounted searchable snapshots #9588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -212,3 +212,12 @@ Nodes exceeding the low watermark threshold will be slow to restart. Reduce the | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| If you closed all {{ml}} jobs before stopping the nodes, open the jobs and start the datafeeds from {{kib}} or with the [open jobs]({{es-apis}}operation/operation-ml-open-job) and [start datafeed]({{es-apis}}operation/operation-ml-start-datafeed) APIs. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ### Avoid downloading fully mounted {{search-snaps}} again [restart-cluster-rolling-search-snaps] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Fully mounted {{search-snaps}} have no replicas, so a shard that is allocated to a different node is downloaded again from the snapshot repository. To give each node the best chance of getting its own shards back after the restart: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * **Keep disk usage comfortably below the low watermark on every node that holds fully mounted indices.** A node above the [low watermark](elasticsearch://reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings.md#cluster-routing-watermark-low) can't receive shards, including its own, so they are allocated to other nodes instead. Before you start, check `GET _cat/allocation?v&h=node,disk.percent,disk.avail,disk.total` against your [disk-based shard allocation settings](elasticsearch://reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings.md#disk-based-shard-allocation). The low watermark can be capped by a maximum headroom, so check the absolute free space as well as the percentage. If nodes are close to the watermark, free up space or add capacity before the maintenance. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * **Re-enable allocation only after the node has rejoined.** Follow steps 6 and 7 in order: if you remove the `cluster.routing.allocation.enable` setting while the restarted node is still away, its fully mounted shards are allocated to other nodes immediately. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. naming numbered steps is pretty fragile because someone might reorder or inject a new steps. I would suggest naming the actual action
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if you want to keep the references to the steps concrete (I didn't do this in my other suggestions in this area) we can add anchor links to the target steps then link to them |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * **Check before you re-enable allocation.** Run the [cluster allocation explain API]({{es-apis}}operation/operation-cluster-allocation-explain) for one unassigned fully mounted shard. If the response shows the restarted node being rejected by the `disk_threshold` decider, resolve the disk space issue first. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| * **Check before you repeat for the next node.** As part of step 8, confirm that the node's shards have started on it and that `GET _cat/recovery?v&active_only=true` shows no snapshot recoveries. If recoveries are starting on other nodes, pause the rolling restart and check disk usage against the watermarks. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+216
to
+223
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggest splitting bullets into before and during. the headings are aggressive so here are two options
Suggested change
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -177,7 +177,9 @@ | |||||
| :::: | ||||||
|
|
||||||
|
|
||||||
| It’s worth noting that if a searchable snapshot index has no replicas, then when the node hosting it is shut down, allocation will immediately try to relocate the index to a new node in order to maximize availability. For fully mounted indices this will result in the new node downloading the entire index snapshot from the cloud repository. Under a rolling cluster restart, this may happen multiple times for each searchable snapshot index. Temporarily disabling allocation during planned node restart will prevent this, as described in the [cluster restart procedure](../../maintenance/start-stop-services/full-cluster-restart-rolling-restart-procedures.md#restart-cluster-rolling). | ||||||
| It’s worth noting that if a searchable snapshot index has no replicas, then when the node hosting it is shut down, allocation will immediately try to relocate the index to a new node in order to maximize availability. For fully mounted indices this will result in the new node downloading the entire index snapshot from the cloud repository. Under a rolling cluster restart, this may happen multiple times for each searchable snapshot index. Temporarily disabling allocation during planned node restart will prevent this, as described in the [cluster restart procedure](../../maintenance/start-stop-services/full-cluster-restart-rolling-restart-procedures.md#restart-cluster-rolling-search-snaps). | ||||||
|
Check notice on line 180 in deploy-manage/tools/snapshot-and-restore/searchable-snapshots.md
|
||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the old link was more relevant here because it described disabling allocation
Suggested change
|
||||||
|
|
||||||
| When allocation is re-enabled after the restart, {{es}} prefers to place each fully mounted shard back on the node that still holds its cached data. This only works if the node is eligible to receive the shard, so before a planned restart keep every node below the low watermark. Refer to the [rolling restart procedure](../../maintenance/start-stop-services/full-cluster-restart-rolling-restart-procedures.md#restart-cluster-rolling-search-snaps) for the checks to run. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
|
|
||||||
| ## Back up and restore {{search-snaps}} [back-up-restore-searchable-snapshots] | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect your concern about the self-managed procedure not being 100% applicable to ECE is correct because a lot of the steps in the linked procedure are automated (and my research confirms this, as far as an AI-powered exploration is concerned). I'd remove the xref and keep the key actions on this page.
if you do xref, contextualize it, e.g. "refer to the self-managed deployment procedure for other checks you can perform."