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

[Feat.] Converting ociv1 layer blob to turboOCI blob locally. #263

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

BigVan
Copy link
Member

@BigVan BigVan commented Feb 21, 2024

With proxyDiffer, containerd can decompress tgz layer and convert it to turboOCI blob without unpacking tarball

It is very effective in reducing disk I/O pressure because of replacing unpack multiple files with generating ext4 fsmeta.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

@BigVan BigVan force-pushed the conv2turbo branch 3 times, most recently from a975fe9 to 96f0a67 Compare February 21, 2024 14:32
@yuchen0cc yuchen0cc added the ok-to-test Pull request is ok to run ci test label Feb 22, 2024
Dir: o.upperPath(id),
File: o.turboOCIFsMeta(id),
File: o.magicFilePath(id),
Copy link
Contributor

Choose a reason for hiding this comment

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

This will cause previous turbo indexes to not work properly.

// output options
Ext4FSMetaPath string
// (TODO) GzipIndexPath string
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest not creating this new package. Structures of overlaybd device config could remain in the package snapshot, and ConvertOption should be placed in utils.

Copy link
Member Author

@BigVan BigVan Feb 27, 2024

Choose a reason for hiding this comment

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

I tried it. but circular dependency happened

Copy link
Contributor

@WaberZhuang WaberZhuang left a comment

Choose a reason for hiding this comment

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

LGTM

With proxyDiffer, containerd can decompress tgz layer and convert
it to turboOCI blob without unpack tarball

It is very effective in reducing disk I/O pressure because of
replacing unpack multiple files with generating ext4 fsmeta.

Signed-off-by: Yifan Yuan <tuji.yyf@alibaba-inc.com>
@BigVan BigVan merged commit 0b0fd15 into containerd:main Feb 27, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Pull request is ok to run ci test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants