Skip to content

docs: Add disk-space guidance for rolling restarts with fully mounted searchable snapshots - #9588

Open
pete-naylor wants to merge 3 commits into
mainfrom
docs/searchable-snapshots-restart-disk-space
Open

pete-naylor wants to merge 3 commits into
mainfrom
docs/searchable-snapshots-restart-disk-space

Conversation

@pete-naylor

Copy link
Copy Markdown
Contributor

Summary

Adds practical guidance to help rolling restarts and host maintenance complete without fully mounted searchable snapshot shards being downloaded again from the repository. Keeping every node below the low watermark is the main recommendation.

Changes

  • Rolling restart procedure: extends the existing low-watermark warning, and adds four checks before step 1. They cover headroom on nodes holding fully mounted indices, keeping allocation restricted until the node rejoins, running allocation explain before re-enabling allocation, and checking _cat/recovery before moving on.
  • Searchable snapshots, data transfer costs: adds a short paragraph explaining that shards prefer the node that still holds their cache, and links to the procedure.
  • ECE host maintenance: adds a note to prepare clusters as for a rolling restart, and links to the procedure.

Notes for reviewer

  • We'll request review from engineering to confirm the allocation behavior described.
  • The rolling restart page is scoped applies_to: deployment: self, but the ECE page now links to it. An ECE docs reviewer may want to look at that.

Preview

Link to be added once CI builds it.

🤖 Generated with Claude Code

… searchable snapshots

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@pete-naylor
pete-naylor requested a review from a team as a code owner November 24, 2026 02:54
@pete-naylor pete-naylor added the documentation Improvements or additions to documentation label Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Elastic Docs Style Checker (Vale)

Summary: 2 suggestions found

💡 Suggestions (2): Optional style improvements. Apply when helpful.
File Line Rule Message
deploy-manage/tools/snapshot-and-restore/searchable-snapshots.md 180 Elastic.Wordiness Consider using 'to' instead of 'in order to'.
deploy-manage/tools/snapshot-and-restore/searchable-snapshots.md 180 Elastic.WordChoice Consider using 'can, might' instead of 'may', unless the term is in the UI.

The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

@henningandersen henningandersen left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, left some comments.

* **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.
* **Keep allocation restricted until the node has rejoined.** Restore `cluster.routing.allocation.enable` only after the restarted node appears in the `GET _cat/nodes` response. If you re-enable allocation while the node is still away, its fully mounted shards are allocated to other nodes immediately.
* **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 move on.** After you re-enable allocation, 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in point 8 (cluster is stable). We may want to reflect that there instead if you think the elaboration is necessary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point - but I think that the _cat/recovery check is a useful addition? I kept it as a bullet and reworded with a tie-in to step 8 (instead of changing the generic step). What do you think?

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@shainaraskas shainaraskas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple edits and attempting to address your ECE comment.

imo if you're ok with unlinking the procedures, ECE doesn't need to review, but we can loop them in if you prefer

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).

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
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. To let {{es}} do this, keep every node below the [low watermark](elasticsearch://reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings.md#cluster-routing-watermark-low) before a planned restart. 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.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The 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

@shainaraskas shainaraskas Nov 26, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The 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

7. **Re-enable replica shard allocation.** $$$restart-cluster-rolling-reenable-allocation$$$
8. **Repeat in case of rolling restart.** $$$restart-cluster-rolling-repeat$$$
2. When you [re-enable replica shard allocation](#restart-cluster-rolling-reenable-allocation), do it only when the node has rejoined and disk space isn't blocking it. If you remove the `cluster.routing.allocation.enable` setting before the restarted node rejoins the cluster, its fully mounted shards are allocated to other nodes immediately.
3. When you [repeat the procedure for the next node](#restart-cluster-rolling-repeat), first confirm that the node has its shards back. Run `GET _cat/recovery?v&active_only=true` and check that no snapshot recoveries are active. If recoveries are starting on other nodes, pause the rolling restart and check disk usage against the watermarks.


The way that you disable container services differs based on the platform you used to deploy your ECE hosts.

If you restart the host without first moving its {{es}} nodes to other allocators, the nodes shut down with the host. Before you start, prepare each affected cluster as you would for a rolling restart. The [rolling restart procedure](../start-stop-services/full-cluster-restart-rolling-restart-procedures.md#restart-cluster-rolling-search-snaps) describes the allocation steps and the checks for nodes that hold fully mounted {{search-snaps}}.

Copy link
Copy Markdown
Member

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."

Suggested change
If you restart the host without first moving its {{es}} nodes to other allocators, the nodes shut down with the host. Before you start, prepare each affected cluster as you would for a rolling restart. The [rolling restart procedure](../start-stop-services/full-cluster-restart-rolling-restart-procedures.md#restart-cluster-rolling-search-snaps) describes the allocation steps and the checks for nodes that hold fully mounted {{search-snaps}}.
If you restart the host without first moving its {{es}} nodes to other allocators, the nodes shut down with the host. Before you start, keep nodes that hold fully mounted {{search-snaps}} below the [low watermark](elasticsearch://reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings.md#cluster-routing-watermark-low) so that their shards aren't downloaded again from the snapshot repository. To check disk usage, run `GET _cat/allocation?v&h=node,disk.percent,disk.avail,disk.total`. Check the absolute free space as well as the percentage, because a maximum headroom can cap the low watermark.



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).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The 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
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).
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).

Comment on lines +216 to +223
### 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.
* **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.

@shainaraskas shainaraskas Nov 26, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The 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
### 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.
* **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.
### 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, use the following checks.
#### Before you start [restart-cluster-rolling-search-snaps-before]
Keep disk usage comfortably below the [low watermark](elasticsearch://reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings.md#cluster-routing-watermark-low) on every node that holds fully mounted indices. A node above the low watermark can't receive shards, including its own, so the shards are allocated to other nodes instead.
To check disk usage, run `GET _cat/allocation?v&h=node,disk.percent,disk.avail,disk.total` and compare the results with your [disk-based shard allocation settings](elasticsearch://reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings.md#disk-based-shard-allocation). Check the absolute free space as well as the percentage, because a maximum headroom can cap the low watermark.
If nodes are close to the watermark, free up space or add capacity before the maintenance.
#### For each node that you restart [restart-cluster-rolling-search-snaps-each-node]
1. Confirm that disk space isn't blocking the restarted node. When the node has rejoined, run the [cluster allocation explain API]({{es-apis}}operation/operation-cluster-allocation-explain) on one unassigned fully mounted shard. If the response shows the `disk_threshold` decider rejecting the node, resolve the disk space issue.
2. Re-enable allocation only when the node has rejoined and disk space isn't blocking it. If you remove the `cluster.routing.allocation.enable` setting before the restarted node rejoins the cluster, its fully mounted shards are allocated to other nodes immediately.
3. Confirm that the node has its shards back before you restart the next node. Run `GET _cat/recovery?v&active_only=true` and check that no snapshot recoveries are active. If recoveries are starting on other nodes, pause the rolling restart and check disk usage against the watermarks.
Suggested change
### 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.
* **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.
### 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, use the following checks.
Before you start, keep disk usage comfortably below the [low watermark](elasticsearch://reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings.md#cluster-routing-watermark-low) on every node that holds fully mounted indices. A node above the low watermark can't receive shards, including its own, so the shards are allocated to other nodes instead. To check disk usage, run `GET _cat/allocation?v&h=node,disk.percent,disk.avail,disk.total` and compare the results with your [disk-based shard allocation settings](elasticsearch://reference/elasticsearch/configuration-reference/cluster-level-shard-allocation-routing-settings.md#disk-based-shard-allocation). Check the absolute free space as well as the percentage, because a maximum headroom can cap the low watermark. If nodes are close to the watermark, free up space or add capacity before the maintenance.
For each node that you restart:
1. Confirm that disk space isn't blocking the restarted node. When the node has rejoined, run the [cluster allocation explain API]({{es-apis}}operation/operation-cluster-allocation-explain) on one unassigned fully mounted shard. If the response shows the `disk_threshold` decider rejecting the node, resolve the disk space issue.
2. Re-enable allocation only when the node has rejoined and disk space isn't blocking it. If you remove the `cluster.routing.allocation.enable` setting before the restarted node rejoins the cluster, its fully mounted shards are allocated to other nodes immediately.
3. Confirm that the node has its shards back before you restart the next node. Run `GET _cat/recovery?v&active_only=true` and check that no snapshot recoveries are active. If recoveries are starting on other nodes, pause the rolling restart and check disk usage against the watermarks.

This branch was successfully deployed

1 active deployment
docs-preview — ed9b17bc Deployed Nov 26, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants