When I try to do Instance SimulateMaintenanceEvent by gcloud compute instances simulate-maintenance-event
command from linux VM (in GCP) I get one of the following errors:
ERROR: (gcloud.compute.instances.simulate-maintenance-event) Maintenance cannot be simulated on this instance due to temporary concurrency limitations. Please try again in a few minutes.
or
ERROR: (gcloud.compute.instances.simulate-maintenance-event) Internal error. Please try again or contact Google Support. (Code: '-238115167244891842')
Interesting thing is that errors happen far more frequently while working in us-central1
region unlike in us-east1
. No service account is used.
According to page https://cloud.google.com/compute/docs/api-rate-limits for SimulateMaintenanceEvent requests there are:
- Rate per project: 2 requests/second
- Rate per user: 2 requests/second
- Quota buckets are refilled every 100 seconds
I do API calls once in ~13min and retry in 5 mins if it fails, however it keeps failing several times and succeeds very seldom.
Any ideas why this is happening? Any solutions? Thanks in advance.