This document describes how to resolve resource availability errors that mightoccur when you try to request new Compute Engine resources or createreservations of Compute Engine resources. Resource errors occur when you tryto request resources in a zone that cannot accommodate your request due to thecurrent unavailability of a Compute Engine resource, such as GPUs or CPUs.
Resource errors only apply to new resource requests in the zone and do notaffect existing resources. Resource errors are not related to yourCompute Engine quota and only apply to the resource you specified in yourrequest at the time you sent the request, not to all resources in the zone.
Common error messages
The following are examples of common resource errors that you might encounterwhen you request new Compute Engine resources or create new reservations:
ZONE_RESOURCE_POOL_EXHAUSTED
ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS
The zone 'projects/PROJECT_ID/zones/ZONE' does not have enough resources available to fulfill the request.Try a different zone, or try again later.
A VM_TYPE_AND_SIZE VM instance with RESOURCE_ATTACHMENT is currently unavailable in the ZONE zone.Capacity changes frequently, so try your request in a different zone, with a different VM hardwareconfiguration, or at a later time. For more options, see troubleshooting documentation.
A VM_TYPE_AND_SIZE VM instance with RESOURCE_ATTACHMENT is currently unavailable in the ZONE zone, because of REASON.Consider trying your request in the ZONE zone(s), which currently has capacity to accommodate your request.If you cannot move your VM to ZONE, review the REASON failure resolution instructions available in troubleshooting documentation, then try your request again.If your workload can't accommodate the suggested resolution, try your request with a different VM hardware configuration or at a later time.
Some error messages include a reason
field that provides information aboutthe specific resource that Compute Engine was unable to fulfill from yourrequest. View theResource error reasons and recommendations sectionof this document to learn more about the reasons resource errorsoccur and resolution strategies for each error reason
.
Resolve resource errors
In general, the best way to resolve a resource error is to retry the requestin a different zone, at a different time, or with a different VM configuration.If the error message you received included a reason
field, you can findspecific remediation recommendations to help you resolve the error in theResource error reasons and recommendations sectionof this document.
If you're trying to create a zonal managed instance group (MIG) with GPU VMs,thencreate a resize request in the MIG.Resize requests are helpful to obtain highly-demand resources all at once in aMIG and run the VMs for a specific time. Specifying the run duration improvesobtainability of highly-demanded resources and avoids unnecessary charges.
If you're trying to create a regional MIG, try changing the MIGs distributionshape toBALANCED,ANY,orANY_SINGLE_ZONE.For more information about distribution shapes, seeRegional MIG target distribution shape.
If you are trying to create Spot VMs (or legacy preemptible VMs),remember that these VMs are spare capacity, which is unplanned and volatile, sothey might not be obtainable at peak demand periods. Consequently,Spot VMs are only recommended for workloads with flexible time,location, and VM-configuration requirements. You can help prevent this error forSpot VMs by following thebest practices to makeyour workload more flexible. If this error persists, usestandard VMs instead.
The best way to prevent resource errors is to createCompute Engine reservationsahead of when you need the resources. Reservations help ensure that resourcesare available when you need them.
Resource error reasons and recommendations
The following table provides information about the reason
field present insome resource error messages and recommendations about resolution strategies foreach reason
.
Error reason | Description | Recommendation |
---|---|---|
resource_availability | The type and size of VM that you requested is currently unavailable in the zone that you requested it in. | Try requesting the VM in another zone. |
cpu_availability | A VM with the amount of CPU that you requested is currently unavailable in the zone that you requested it in. | Try one of the following:
|
memory_availability | A VM with the amount of memory that you requested is currently unavailable in the zone that you requested it in. | Try one of the following:
|
local_ssd_availability | A VM with the amount of local SSD that you requested is currently unavailable in the zone that you requested it in. | Try one of the following:
|
gpu_availability | A VM with the GPU that you requested is currently unavailable in the zone you requested it in. | Try requesting the VM in another zone. |
If you were unable to resolve the error using any of the preceding resolutionrecommendations, try Getting support.