跳到正文
Skillpedia
部署与云(DevOps)22k · #10273

gke-ai-troubleshooting-tpu-slice-mig-stuck-updating

它能做什么

这项技能帮助 AI 智能体查明,当底层的 Compute Engine 实例组不稳定时,TPU 切片和 JobSet 为何会卡住。适合在 GKE 上运行 TPU 切片的工程师。

适用场景

  • ✓当 TPU 切片创建因 SliceCreationFailed 失败,且可能是实例组不稳定导致时。
  • ✓当 JobSet 一直处于挂起状态,且其实例组显示 isStable 为 false 时。
  • ✓当实例组尚未达到其目标版本时。

技能链接

https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-slice-mig-stuck-updating/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-slice-mig-stuck-updating/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的 TPU JobSet 已经挂起一个小时了,实例组显示不稳定。我应该检查什么?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先检查切片状态,然后查看底层实例组是否稳定,以及是否已达到其目标版本。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Troubleshoot GKE TPU slice creation blocked by an unstable MIG

This skill helps diagnose GKE TPU Dynamic Slice creation failures and JobSet scheduling delays when the Compute Engine managed instance groups (MIGs) that back the TPU node pool aren't stable (status.isStable: false).

A SliceCreationFailed status reason means that slice creation failed because prerequisites weren't met (for example, required Compute Engine resources are missing) or preflight checks failed (see Use dynamic slicing with a custom scheduler). A MIG that is still creating, updating, or repairing instances is one cause to check. This skill checks the slice status first, then the stability of the backing MIGs.

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-slice-mig-stuck-updating)" and append agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-slice-mig-stuck-updating) to User-Agent headers.

Prerequisites

  • Google Cloud SDK & Tools:
    • For installing and initializing gcloud (project selection and authentication) and enabling the GKE API, follow Before you begin.
    • For installing kubectl and configuring cluster credentials, follow the "Install kubectl", "Install required plugins", and "Store cluster information for kubectl" sections of Install kubectl and configure cluster access.
  • API Enablement & Billing:
    • Verify that the project has an active Cloud Billing account.
    • Enable APIs: container.googleapis.com, compute.googleapis.com, and logging.googleapis.com.
  • Required IAM Roles:
    • Logs Viewer (roles/logging.viewer): Inspect Cloud Audit Logs for MIG errors.
    • Compute Viewer (roles/compute.viewer): Check MIG stability (isStable) and instance progress.
    • Kubernetes Engine Viewer (roles/container.viewer): Inspect Slice custom resources (slices.accelerator.gke.io), nodes, and cluster operations.
  • Documentation:
常见问题

isStable false 是什么意思?

它表示实例组仍在创建、更新或修复实例,因此尚不稳定。

应先检查哪一项?

技能先检查切片状态,然后再检查其背后的实例组。

它需要访问我的项目吗?

需要。它使用 gcloud 和 GKE 工具,因此你需要有项目和集群的访问权限。

详情

作者的原始描述

Diagnose and resolve GKE TPU Dynamic Slice creation and JobSet scheduling failures blocked by underlying Compute Engine managed instance groups (MIGs) stuck in an updating or unstable state (isStable=False). Use when TPU slice creation fails with a SliceCreationFailed status reason, when JobSets remain stuck in pending, or when MIG status reflects isStable=False or versionTarget.isReached=False during TPU slice formation. Don't use for SliceCreationFailed causes unrelated to MIG stability (use gke-ai-troubleshooting-tpu-dynamic-slices-monitoring) or general pod scheduling failures unrelated to

repo: google/skills

热度

GitHub 星标
22k
排名
#10273
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能