Skip to content

Commit ace7be7

Browse files
authored
update GCR quotas (#1619)
I'm not sure the backoff needs changing, but the posted quotas have changed. TODO: ARBackoff()
1 parent e2620e5 commit ace7be7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/gcrane/copy.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ var Keychain = authn.NewMultiKeychain(google.Keychain, authn.DefaultKeychain)
4141
//
4242
// These numbers are based on GCR's posted quotas:
4343
// https://cloud.google.com/container-registry/quotas
44-
// - 30k requests per 10 minutes.
45-
// - 500k requests per 24 hours.
44+
// - 50k requests per 10 minutes.
45+
// - 1M requests per 24 hours.
4646
//
4747
// On error, we will wait for:
4848
// - 6 seconds (in case of very short term 429s from GCS), then
4949
// - 1 minute (in case of temporary network issues), then
5050
// - 10 minutes (to get around GCR 10 minute quotas), then fail.
5151
//
52-
// TODO: In theory, we could keep retrying until the next day to get around the 500k limit.
52+
// TODO: In theory, we could keep retrying until the next day to get around the 1M limit.
5353
func GCRBackoff() retry.Backoff {
5454
return retry.Backoff{
5555
Duration: 6 * time.Second,

0 commit comments

Comments
 (0)