From b52c6f673e1fa0a14ebc758f53d26ec1e4dda72d Mon Sep 17 00:00:00 2001 From: Alex Robinson Date: Thu, 9 Jul 2015 22:51:23 +0000 Subject: [PATCH] Increase the rate limiting of GCE's token source. The burst being at 3 means transient errors won't incur such long waits, but repeating failures shouldn't be retrying every second. --- pkg/cloudprovider/gce/token_source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloudprovider/gce/token_source.go b/pkg/cloudprovider/gce/token_source.go index ac41ba5e832..440cf3e81be 100644 --- a/pkg/cloudprovider/gce/token_source.go +++ b/pkg/cloudprovider/gce/token_source.go @@ -31,7 +31,7 @@ import ( const ( // Max QPS to allow through to the token URL. - tokenURLQPS = 1 + tokenURLQPS = .05 // back off to once every 20 seconds when failing // Maximum burst of requests to token URL before limiting. tokenURLBurst = 3 )