Repository navigation
Conversation
Member
|
Why? We already implemented EBS direct upload directly in Python. Coldsnap was very buggy in our experience |
Member
|
Reason for our rewrite was awslabs/coldsnap#362 . The python code is more robust against network failures and upstream seems slow/abandoned. |
Member
|
Also the zero-block skipping in coldsnap is actually broken. We can add the skipping to the python code and not repeat their mistakes instead: awslabs/coldsnap#470 |
Images without the file register as before. Assisted-by: Claude:claude-opus-5-5
Assisted-by: Claude:claude-opus-5-5
Assisted-by: Claude:claude-opus-5-5
Skipping all-zero blocks halves the upload of a NixOS image (1.98 of 3.92 GiB on x86_64). That only happens without EBS encryption by default, since unwritten blocks of an encrypted snapshot don't read back as zeros. Images that aren't raw are converted with qemu-img first, and a snapshot whose wait fails is deleted, as before. Assisted-by: Claude:claude-opus-5-5
This branch was successfully deployed
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.
Stacked on #387, so only the last commit is new.
--ebs-directuploads with coldsnap and skips all-zero blocks. For a NixOS image that halves the upload (1.98 of 3.92 GiB on x86_64).