Common errors RESOURCE_EXHAUSTED

Recently, I get to the Google Cloud Deployment Manager, but struggling with some strange bugs. Maybe someone here will have some idea about the reason.

Usually I β€œcreate” a deployment in preview mode, and then, as soon as I see it in the GUI, I will click the β€œExpand” button and do it. But when it ends, I am greeted with the following error message:

{ "ResourceType": "deploymentmanager.v2.virtual.enableService", "ResourceErrorCode": "429", "ResourceErrorMessage": { "code": 429, "message": "Insufficient tokens for quota 'DefaultGroup' and limit 'CLIENT_PROJECT-100s' of service 'servicemanagement.googleapis.com' for consumer 'project_number:794362051698'.", "status": "RESOURCE_EXHAUSTED", "details": [{ "@type": "type.googleapis.com/google.rpc.Help", "links": [{ "description": "Google developer console API key", "url": "https://console.developers.google.com/project/794362051698/apiui/credential" }] }], "statusMessage": "Too Many Requests", "requestPath": "https://servicemanagement.googleapis.com/v1/operations/projectSettings.d51a6a47-7a15-42bb-90a7-70c3dd7c25e3" } } 

You might think that this is due to exceeding the quota, but after checking the quotas in IAM-> Quotas, I can not find anything by the quota.

My Deployment Manager now has 3 deployments in a similar miserable state. The strange thing is that my project was created, and when I look at the included APIs for this project, I find everything that I specified in my DM configuration.

Edit: the problem seems to go away when I remove some of the APIs that I enable (using the apis: block in my resource: block). I am trying to turn 23 on, but the problem goes away when I cut that number in half.

+5
source share
2 answers

This issue is discussed at https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1756 . Result:

I gave each subscription a unique name for the subscription (uuid) to ensure that messages arrive at one subscriber at a time, so one way to reduce usage is to avoid this and instead ignore irrelevant messages. But the main thing that this decided was to increase the quota in the developer's console, if I remember correctly that the default quota is 1K, I took its maximum (10K); it was not clear that you could do this from the console. Finally, I now use a different message queue for several reasons, one of which I thought 10K was too small - that was;)

+2
source

Most likely, you will encounter quotas set by Deployment Manager - https://cloud.google.com/deployment-manager/pricing-and-quotas .

Deployment Manager

Deployment Manager applies the following API restrictions and quotas:

  • Unlimited read requests , including any requests made through gcloud or the Google Cloud Platform Console. Requests, such as get and list, will be considered read requests.
  • Unlimited removal requests to remove deployment.
  • 1000 API write requests per day , including requests made through gcloud. This includes requests to modify or create deployments and resources, such as insert and update.
  • 20 API requests per second .
  • 1000 deployments per project .
  • 1 MB for user configurations , including YAML configuration and any import.
  • 1 MB limit for advanced configurations . When you are fully configured can not exceed this size.
+1
source

Source: https://habr.com/ru/post/1269128/


All Articles