Reputation: 1706
I have an Instance Group
configured to deploy in all zones: "europe-west3 (3/3 zones)". Instance redistribution is "On". Autoscaling and autohealing are "Off" (development environment). The Number of instances is 1. Google Cloud Status Dashboard shows that everything is working OK.
Today I tried a rolling REPLACE. Once in the morning and once in the evening. Both attempts failed to create a new VM saying:
The zone 'projects/xxx/zones/europe-west3-c' does not have enough resources available to fulfill the request. Try a different zone, or try again later.
Why wouldn't GCE Instance Group
choose a suitable zone automatically where there are enough resources? It retries for hours in the same zone. I can see the log in the "Errors" tab.
Is this a bug in my Instance Group
configuration, or is it a bug in GCE? Do you think Autoscaling would behave in the same ridiculous way and is therefore unreliable, too?
Upvotes: 1
Views: 1941
Reputation: 373
If you cannot create an instance because of (ZONE_RESOURCE_POOL_EXHAUSTED or ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS ), it means that the zone cannot currently accommodate your request. This error is due to the un-availability of Compute Engine resources in the zone, and is not due to your Compute Engine quota 1.
Here are some tips to help mitigate:
It is recommended to deploy and balance your workload across multiple zones and regions to reduce the likelihood of an outage and have access to multiple resource pools when you need to expand quickly. Please review documentation 2 which outlines how to build resilient and scalable architectures on Google Cloud Platform. Please note that you are currently using Google Cloud on-demand without a guarantee of capacity. We now offer a feature called reservations that guarantees Google Cloud capacity, see documentation 3 for details on how to use this feature.
Upvotes: 1