You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove unnecessary calls to the GCP metadata server
Calling Google::Auth.get_application_default triggers an explicit call to
the metadata server - given it was being called for significant number of
file operations, it can lead to considerable tail latencies and even metadata
server overloads. Instead, it's preferable (and significantly more efficient)
that applications use:
Google::Apis::RequestOptions.default.authorization = Google::Auth.get_application_default(...)
In the cases applications do not set that, the GCP libraries automatically determine credentials.
0 commit comments