Reputation: 11
Keep getting this error.
The zone 'projects/central-stream-282217/zones/asia-south1-b' does not have enough resources available to fulfill the request. Try a different zone, or try again later.
Don't know what to do.
All my quota looks fine
Upvotes: 0
Views: 766
Reputation: 4471
This behaviour has no connections to quotas and it's not an issue.
Let's have a look at the cause of such behaviour: when you stop an instance it releases some resources like vCPU and memory, when you start an instance it requests resources like vCPU and memory back and if there's not enough resources available in the zone you'll get an error message:
The zone 'projects/central-stream-282217/zones/asia-south1-b' does not have enough resources available to fulfill the request. Try a different zone, or try again later..
more information available in the documentation:
If you receive a resource error (such as ZONE_RESOURCE_POOL_EXHAUSTED or ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS) when requesting new resources, it means that the zone cannot currently accommodate your request. This error is due to Compute Engine resource obtainability, and is not due to your Compute Engine quota.
The reason for this behavior is resource availability which depends from users requests and therefore are dynamic.
There are a few ways to solve it:
Create reservations for Virtual Machine (VM) instances in a specific zone, using custom or predefined machine types, with or without additional GPUs or local SSDs, to ensure resources are available for your workloads when you need them. After you create a reservation, you begin paying for the reserved resources immediately, and they remain available for your project to use indefinitely, until the reservation is deleted.
Upvotes: 1