Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

429 error from metadata.google.internal when trying to refresh auth token

I just got two errors like this in a python worker process that uses the `google.cloud.storage.transfer_manager.upload_many` function to upload intermediate data as it runs.  The worker is long-lived batch process that is running in a docker container on c2 instance via google batch -- so using the latest container optimized os imge.

google.auth.exceptions.TransportError: ('Failed to retrieve http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/pr-0-zephyrus-sa@zephr-... from the Google Compute Engine metadata service. Status: 429 Response:\nb\'"Too many requests."\'', <google.auth.transport.requests._Response object at 0x79ff3da7bb30>)

I had maybe 200-ish similar instances running at the time we hit the failure.  I can't for the life of me figure out what the quota's are for the metadata server -- do I need to adjust them (we just significantly increasing the number of concurrent workers allocated to this process) -- or is there something crazy/unexpected happening inside the worker causing way more instance metadata requests than needed/expected ... 

I've been googling for awhile and can't find any leads to track this down.

 

 

3 6 1,096