-
Notifications
You must be signed in to change notification settings - Fork 75
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
Conversation
a975fe9
to
96f0a67
Compare
pkg/snapshot/storage.go
Outdated
Dir: o.upperPath(id), | ||
File: o.turboOCIFsMeta(id), | ||
File: o.magicFilePath(id), |
There was a problem hiding this comment.
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.
pkg/types/types.go
Outdated
// output options | ||
Ext4FSMetaPath string | ||
// (TODO) GzipIndexPath string | ||
} |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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
There was a problem hiding this 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>
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: