snapshot: restore remote mounts on demand after restart - #2359
Open
wxx213 wants to merge 1 commit into
Open
Conversation
wxx213
force-pushed
the
fix_invalid_mount_recover
branch
from
August 4, 2026 04:38
7de887f to
0481f60
Compare
Member
Can you elaborate this? Why is the registry unavailable during the snapshotter startup? |
Author
We deployed our image cached registry in cluster by k8s service,most of our application images use it but except like cilium pods. On the host reboot,stargz snapshotter cannot connect the registry by service ip to recover remote snapshotters when cilium pod is not ready. So we need the lazy snapshotter recover feature like this. |
Add lazy_restore_on_restart to skip remote resolution and FUSE mount restoration during snapshotter startup. When an unregistered remote layer is first used, restore its mount from the snapshot labels. Coalesce concurrent requests for the same mountpoint and support both in-process and fuse-manager modes. This allows the snapshotter to start while the registry is unavailable. Signed-off-by: Wang Xingxing <wangxingxing@siliconflow.cn>
wxx213
force-pushed
the
fix_invalid_mount_recover
branch
from
August 19, 2026 03:39
0481f60 to
2302135
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add lazy_restore_on_restart to skip remote resolution and FUSE mount restoration during snapshotter startup.
When an unregistered remote layer is first used, restore its mount from the snapshot labels. Coalesce concurrent requests for the same mountpoint and support both in-process and fuse-manager modes.
This allows the snapshotter to start while the registry is unavailable.