-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Parallelise layer downloads #9922
Labels
Comments
Hi! I'm a UT student working on a final project in my virtualization class where we have to contribute to an open source project. I was wondering I could get this issue assigned to me? |
Hey @benginow sure, be my guest but, note that I am not a maintainer of containerd ! Good luck ! https://github.com/containerd/containerd/blob/main/CONTRIBUTING.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the problem you're trying to solve
If I'm being correct, currently, each layer is downloaded in one goroutine within
newHTTPReadSeeker
.I work with quite big AI related images (drivers, models and deps are big), and sometimes, a layer can be really big, it is not rare at all to see ~10 GB layers.
I think it could benefit this use case to allow to parallelise the download of a single layer.
Describe the solution you'd like
A way to configure the parallelisation of a layer would be nice to have.
I know that the
amazon-ecr-containerd-resolver
uses parallelisation with htcat: https://github.com/awslabs/amazon-ecr-containerd-resolver/blob/dc8a230a63b583bda4e0601a8945b4fdf9166084/ecr/fetcher.go#L125If that setting is set, htcat tries to do range requests on big enough files and if that works, downloads things in parallel.
Additional context
happy to work on this.
Related: #9138
The text was updated successfully, but these errors were encountered: