【问题标题】:Instance Group won't create an instance with GPU: Not enough resourcesInstance Group 不会使用 GPU 创建实例:没有足够的资源
【发布时间】:2018-12-03 13:35:17
【问题描述】:

我可以使用 NVIDIA-K80 手动创建实例,但是我的实例组在实例上显示警告:

Instance 'instance-6lqk' creation failed: The zone 'projects/my-project/zones/us-central1-a' does not have enough resources available to fulfill the request. Try a different zone, or try again later.

注意:两者都是在同一个区域中创建的

【问题讨论】:

  • 您是否尝试更改区域?
  • 也许换个云提供商!我无法更改区域。

标签: google-cloud-platform google-compute-engine


【解决方案1】:

(适用于谷歌)

您收到的错误消息表明您做的一切都是正确的,但该区域无法满足您的请求。有时,由于各种原因,这种情况会在单个区域中发生。我的建议是使用多个区域和/或多个区域,这样如果您在一个区域发生这种情况,您可以简单地在另一个区域创建容量。

请注意,我们的许多抢占式 GPU 用户希望在许多 GPU 上运行大型工作负载就是这样做的。在多个区域申请配额并运行多区域实例组,以获得尽可能多的访问权限。

【讨论】:

    【解决方案2】:

    我从Google doc 的实例模板创建了我的实例组

    使用以下 Google Doc 中的相同示例:

    gcloud beta compute instance-templates create gpu-template \
    --machine-type n1-standard-2 \
    --boot-disk-size 250GB \
    --accelerator type=nvidia-tesla-k80,count=1 \
    --image-family ubuntu-1604-lts --image-project ubuntu-os-cloud \
    --maintenance-policy TERMINATE --restart-on-failure \
    --metadata startup-script='#!/bin/bash
    echo "Checking for CUDA and installing."
    # Check for CUDA and try to install.
    if ! dpkg-query -W cuda-9-0; then
      curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
      dpkg -i ./cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
      apt-get update
      apt-get install cuda-9-0 -y
    fi'
    

    但是,当您创建 GPU 实例时,我发现了 some 建议。确保您在区域中有必要的配额,Michael 评论了 GPU 限制。

    希望它对你有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-06-21
      • 2021-03-26
      • 2021-04-29
      • 2019-03-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多