Google 云 VM 实例卡在控制台建议的大小调整上
Google Cloud VM Instance Stuck on resizing suggested by Console
我在 Google Cloud 上有一个 vm 实例 运行,它建议我 "you should resize instance to 2CPU and 16GB RAM from 4CPU and 16GB RAM"。
我按下应用以设置新配置。一个小时后实例已停止并卡在调整大小过程中,近邻显示 gcloud 实例列表中已调整大小也未启动。
即使尝试拍摄该虚拟机磁盘的快照也会显示 "it's being used in some operations"
的错误
尝试通过 gcloud 强制停止,但没有成功。在通知弹出窗口中,仅调整虚拟机大小。
请帮帮我。
此问题的主要原因是 GCP 资源可用性取决于用户请求,因此是动态的。因此,当你在没有预留的情况下按需使用云资源时,就会出现这样的问题。
我们来看看这个问题的原因:
- 当你 stop an instance 它释放一些资源,如 vCPU 和内存;
- 当你start an instance它请求像 vCPU 和内存这样的资源;
- 当您调整 VM 大小时,情况是一样的。
如果区域中没有足够的可用资源,您将收到一条错误消息:
The zone 'projects/xyz-project-272905/zones/asia-south1-a' does not have enough resources available to fulfill the request. Try a different zone, or try again later..
您可以在 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.
有几种方法可以解决您的问题:
- 将您的实例移动到 another zone by following instructions。
- 稍等片刻,然后尝试重新调整 VM 实例的大小。
Reserve resources 为您的 VM 遵循文档以避免将来出现此类问题(需要额外付款):
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.
我在 Google Cloud 上有一个 vm 实例 运行,它建议我 "you should resize instance to 2CPU and 16GB RAM from 4CPU and 16GB RAM"。 我按下应用以设置新配置。一个小时后实例已停止并卡在调整大小过程中,近邻显示 gcloud 实例列表中已调整大小也未启动。
即使尝试拍摄该虚拟机磁盘的快照也会显示 "it's being used in some operations"
的错误尝试通过 gcloud 强制停止,但没有成功。在通知弹出窗口中,仅调整虚拟机大小。
请帮帮我。
此问题的主要原因是 GCP 资源可用性取决于用户请求,因此是动态的。因此,当你在没有预留的情况下按需使用云资源时,就会出现这样的问题。
我们来看看这个问题的原因:
- 当你 stop an instance 它释放一些资源,如 vCPU 和内存;
- 当你start an instance它请求像 vCPU 和内存这样的资源;
- 当您调整 VM 大小时,情况是一样的。
如果区域中没有足够的可用资源,您将收到一条错误消息:
The zone 'projects/xyz-project-272905/zones/asia-south1-a' does not have enough resources available to fulfill the request. Try a different zone, or try again later..
您可以在 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.
有几种方法可以解决您的问题:
- 将您的实例移动到 another zone by following instructions。
- 稍等片刻,然后尝试重新调整 VM 实例的大小。
Reserve resources 为您的 VM 遵循文档以避免将来出现此类问题(需要额外付款):
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.