the zone does not have enough resources available to fulfill the request/ the resource is not ready

前端 未结 8 1043
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 09:31

I failed to start my instance (through the web browser), it gave me the error:

\"The zone \'projects/XXXXX/zones/europe-west4-b\' does not have enoug

相关标签:
8条回答
  • 2020-11-28 10:06

    I ran into this error today. For reference I am in San Jose and I could not start any of my us-west VM's. Workaround for me was to just create an image of the VM I was trying to work on, adjust the region until I found one that would create, and use that.

    It is a bit of a problem though that not all regions have access to the same GPU's.

    0 讨论(0)
  • 2020-11-28 10:08

    First of all our apologies that you’re experiencing this issue and great to hear that this issue is being resolved for you.

    Our goal is to make sure that there are available resources in all zones. This type of issue is rare. When a situation like this occurs, or is about to occur, our team is notified immediately and the issue is investigated.

    We recommend deploying and balancing your workload across multiple zones or regions to reduce the likelihood of an outage. Please review our documentation which outlines how to build resilient and scalable architectures on Google Cloud Platform. As you have noticed that trying again in the next few hours fixed your issue, as this is a transient error. It should not last long. Since our system is dynamic and always expanding, in this type of situation I would recommend you to create your instance in a different zone or try later which you have already seen in the error message.

    Additionally, I'll also recommend reviewing this link that recommends distributing your instances across zones to increase availability. You can also review this other link, where you will find some best practices for designing robust systems on GCE (Google Compute Engine).

    0 讨论(0)
  • 2020-11-28 10:08

    Even I'm getting the same error. I have waited for 24 hours and tried. But still no luck. For me, it's not transient.The zone 'projects/XXXX/zones/europe-west2-c' does not have enough resources available to fulfill the request. Try a different zone, or try again later. I had to create entirely new instance to come over it.

    0 讨论(0)
  • 2020-11-28 10:08

    As others have noted, this occurs when a GCP zone is oversubscribed, and its generally temporary. There is something that you can do to defend against it happening to you in the future though.

    What it almost certainly won't resolve the error while the zone has insufficient resources, you can prevent this error in the future by Reserving Zonal Resources in advance -- effectively guaranteeing that the resources will be available for you when you need them.

    Of course, as you are asking GCP to hold computing resources for your future use, you are billed for the instance reservation as if it was a fully running instance (but there isn't an additional charge while your instance is actually running). They also qualify for sustained use and committed use discounts like any VM instance.

    There's a lot of configurability in what you can reserve, but the minimal gcloud command to reserve a single instance might look something like this:

    gcloud compute reservations create my-reservation --machine-type=n1-standard-1 --zone=us-central1-a --vm-count=1
    

    And to delete it when you are done:

    gcloud compute reservations delete my-reservation
    

    You can also do this through the console, on the 'Compute Engine > Commited use discounts > Reservations' tab.

    0 讨论(0)
  • 2020-11-28 10:08

    Happened to me over the weekend when I wanted to swap the K80 to a new P100 instance.

    My setup:

    • 'GPUS_ALL_REGIONS' quota is set to 1.
    • A single GPU (K80) instance on europe-west1 (zone: europe-west1-b)

    Steps that produced the error:

    1. Deleted the K80 instance.
    2. After deleting I had a total of 0 instances running.
    3. Each attempt to create a new instance in the same region produced the error message.

    Any instance created on other regions with the same zone identifier ('b', from europe-west1-b) produced this error as well.


    How to resolve this issue:

    Create a GPU instance on a different region and a different zone identifier ('a', 'c', 'd', ...). That's it.

    0 讨论(0)
  • 2020-11-28 10:15

    The error "ZONE_RESOURCE_POOL_EXHAUSTED" usually means that there are one or more resources in Compute Engine's backend that have been fully allocated or that, for some reason, have temporarily become unavailable for allocation. The best way for you to minimize encountering this error in the future is for you to spread out your instances through multiple zones instead of having them all on europe-west4-b. That way, if one of the zones is suffering from a lack of available resources, you'll have other zones in which to try to allocate those resources you want. https://cloud.google.com/compute/quotas#quotas_and_resource_availability

    0 讨论(0)
提交回复
热议问题