Closed kapadias closed 1 year ago
As the error message explains, there were too many requests to the discovery API within a short span of time. This can happen when Cloud Run's autoscaler starts up a large number of instances and each of them try to call the API. Rapid autoscaling is one of the reasons why Cloud Profiler isn't officially supported on Cloud Run.
As a workaround, you could simply ignore this error and rely on the subset of instances that do manage to connect to the API. Unfortunately we aren't able to offer a more robust fix at this time.
When attempting to run the cloud profiler through the cloud run service, I encounter the following error:
ERROR:googlecloudprofiler.client:Failed to build the Discovery client for profiler (will retry after 19.609s): <HttpError 429 when requesting https://www.googleapis.com/discovery/v1/apis/cloudprofiler/v2/rest returned "Too Many Requests">
Any thoughts what am I missing based on the context files below?
Context pyproject.toml file
App
Docker