Proposal: Avoid writing layer blobs to disk when discard_unpacked_layers is enabled. #13279
Unanswered
omerXfaruq
asked this question in
Ideas
Replies: 1 comment
-
|
Hi @samuelkarp @dmcgowan do you have any thoughts about this proposal, happy to open a PR if it sounds right. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Pain point
When discard_unpacked_layers = true, layer blobs are downloaded, unpacked, and deleted within seconds. But plugins/content/local/writer.go still fsyncs every blob on commit:
containerd/plugins/content/local/writer.go
Line 97 in f9372ec
This is an unnecessary write and creates a bottleneck on low bandwidth disks.
Proposal
Add content.WithDiscardable(). When set, the local content writer:
Impact
Beta Was this translation helpful? Give feedback.
All reactions