Skip to content
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

[WIP] nydus-image: support small chunks mergence #1201

Closed
wants to merge 0 commits into from

Conversation

hangvane
Copy link
Contributor

@hangvane hangvane commented Apr 7, 2023

Add the support of merging small file chunks into one batch chunk, for ConversionType::DirectoryToRafs, ConversionType::EStargzToRafs, ConversionType::TargzToRafs, and ConversionType::TarToRafs.

basic usage

Add the --batch-size arg to command to enable chunk mergence for supported conversion types:

nydus-image create --bootstrap ~/bootstrap --blob-dir ~/blobs ~/source --batch-size 0x100000

nydus-image create --type estargz-rafs --bootstrap ~/bootstrap --blob-dir ~/blobs ~/source.tar.gz --batch-size 0x100000

nydus-image create --type targz-rafs --bootstrap ~/bootstrap --blob-dir ~/blobs ~/source.tar.gz --batch-size 0x100000

nydus-image create --type tar-rafs --bootstrap ~/bootstrap --blob-dir ~/blobs ~/source.tar --batch-size 0x100000

This PR is related to #884, #885, dragonflyoss/Dragonfly2#1858

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant