From ace7be760862130e43b5774d1db2f5b7128dc294 Mon Sep 17 00:00:00 2001 From: Benjamin Elder Date: Fri, 31 Mar 2023 15:34:48 -0700 Subject: [PATCH] update GCR quotas (#1619) I'm not sure the backoff needs changing, but the posted quotas have changed. TODO: ARBackoff() --- pkg/gcrane/copy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/gcrane/copy.go b/pkg/gcrane/copy.go index a3362c412..fe05ffe3a 100644 --- a/pkg/gcrane/copy.go +++ b/pkg/gcrane/copy.go @@ -41,15 +41,15 @@ var Keychain = authn.NewMultiKeychain(google.Keychain, authn.DefaultKeychain) // // These numbers are based on GCR's posted quotas: // https://cloud.google.com/container-registry/quotas -// - 30k requests per 10 minutes. -// - 500k requests per 24 hours. +// - 50k requests per 10 minutes. +// - 1M requests per 24 hours. // // On error, we will wait for: // - 6 seconds (in case of very short term 429s from GCS), then // - 1 minute (in case of temporary network issues), then // - 10 minutes (to get around GCR 10 minute quotas), then fail. // -// TODO: In theory, we could keep retrying until the next day to get around the 500k limit. +// TODO: In theory, we could keep retrying until the next day to get around the 1M limit. func GCRBackoff() retry.Backoff { return retry.Backoff{ Duration: 6 * time.Second,