Open shuaichang opened 1 year ago
@shuaichang I think in general, there are two implementation paths:
rpull --download-blobs
for pulling overlaybd images but two improvements needed to be done. one is parallel downloading single block in chunks to speed on download speed. the other is to remove the process of untar/decompression from content store to snapshot.download
, and full speed background download with no delay or full speed prefetch. and also i think external_image_puller
is feasible for cache type download
that external_image_puller downloads blobs and write into corresponding snapshots directory.
What is the version of your Accelerated Container Image
No response
What would you like to be added?
Overlaydb is great at accelerating container image pulling and we've enjoyed the benefit and appreciate all the support from the community!
Why is this needed for Accelerated Container Image?
Problems
The ondemand data transfer and trace based prefetch are great tools, however, we do see another gap that can be filled in between:
fast prefetch of all blobs
.The following are the reasons:
I am aware that the trace based prefetch would make this issue much better, but it can be costly to add the trace record CI/CD build system in a large scaled Infra with many dependencies.
Therefore, I feel if OverlayBD has a feature that is between lazy loading and trace based prefetch (let's just call it
Prefetch
), then it will be a perfect solution without require too much learning curve and courage to adopt (Problem 2 is a pretty big mindset shift that can slow down adoption)Options
We propose some options here, please feel free to also add
registry_cache
directoryregistry_cache
, will overlaybd-tcmu be able to detect new blob caches added by external_image_puller?rpull --download-blobs
for prefetch full image. However, the performance is pretty slow because 1) it performs unnecessaryapply
, which is part of the containerd pull image library code 2) the blobs are pulls sequentially, which is slow.)Please feel free to also contribute ideas. Again, we appreciate all the great work from OverlayBD community. By contributing real world use cases and requirement, hopefully, we can also help drive OverlayBD adoptions.
Thanks!
Are you willing to submit PRs to contribute to this feature?