-
Notifications
You must be signed in to change notification settings - Fork 11
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
Attempt to speed up deploy #56
Conversation
Always try HEAD request before the PUT request
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.
So this only removes the size check for manifests? Are all our requests still properly accounted for when considering pull and abuse limits?
Yup, the rate limiting is active on every request to Docker Hub using this meta-scripts/registry/client.go Line 35 in 9c6f9d4
|
Because of the way that's implemented, it technically applies to requests to |
Confirmed, |
For unrelated reasons, |
Now that we have rate limits under control, we should always try a HEAD request on the indexes & manifests before the PUT request (since the PUT is much slower).
Some local testing for
riscv64
,arm32v6
, ands390x
using docker-library/meta@6c3188a shows some significant speed increases. I chose these arches since they were fully pushed and would only do head requests (and my Docker Hub user doesn't have access to push to the arch namespaces anyway).