-
Notifications
You must be signed in to change notification settings - Fork 63
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
[perf] imgpkg seems to make lots of repeated requests to /v2
endpoint
#290
Comments
This issue is being marked as stale due to a long period of inactivity and will be closed in 5 days if there is no response. |
This issue needs further investigation to try to understand the reason behind the requests and if it is related to the linked issue. |
This issue is being marked as stale due to a long period of inactivity and will be closed in 5 days if there is no response. |
We did some investigation and the amount of requests is due to a feature from ggcr where before any request is done to a registry it pings the registry to understand the type of authentication needed to it. https://github.com/google/go-containerregistry/blob/ab77ea68f600de27f0563dbfdb1431960ad96af0/pkg/v1/remote/transport/transport.go#L53 We also found that we were doing 1 request to the OAuth server per request to the server. We are addressing this issue in #334 |
Description
running
imgpkg pull --debug
I notice lots of requests being made to the registry/v2
endpoint, trying to get a token.When pulling a bundle with lots of images / nested bundles, I think this may contribute to a performance degradation.
It would be nice to know:
/v2
and assuming the registry requires abearer token
, repeated calls to an oauth serverReference:
The text was updated successfully, but these errors were encountered: