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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
kubectland configuring cluster credentials, follow the "Install kubectl", "Install required plugins", and "Store cluster information for kubectl" sections of Install kubectl and configure cluster access.
- For installing and initializing
- API Enablement & Billing:
- Verify that the project has an active Cloud Billing account.
- Enable APIs:
container.googleapis.com,compute.googleapis.com, andlogging.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.
- Logs Viewer (
- Documentation:
- Use dynamic slicing with a custom scheduler (Sections: "Before you begin", "Create a Slice custom resource", "Monitor the status of the Slice custom resource", "Verify the status of the nodes and the partitions", "Upgrade your node pools")
- Install kubectl and configure cluster access (Sections: "Install kubectl", "Install required plugins", "Store cluster information for kubectl")
- Add and manage node pools (Sections: "View node pools in a Standard cluster")
- View information about MIGs and managed instances (Sections: "Check whether a MIG is stable", "Check the status of managed instances", "List instance errors")
- Automatically apply VM configuration updates in a MIG (Sections: "Verify whether an update rollout is complete")
- Manually upgrade a cluster's control plane or node pools (Sections: "Check node pool upgrade status", "Cancel a node pool upgrade", "Resume a node pool upgrade", "Roll back a node pool upgrade")
- Auto-repair nodes (Sections: "Get information about recent automated repair events")
- Troubleshoot GKE Standard node pools (Sections: "Issue: Node pool creation fails due to insufficient resources")
- [Troubleshoot TPUs in GKE
常见问题
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
评论
- …
同一仓库的更多技能
finding-google-skills
22k帮你的智能体为某项设置任务找到合适的 Google 指南,例如托管、数据库、存储、登录或 AI 模型服务。
gcloud
22k帮你的智能体编写并检查 Google Cloud gcloud 命令,在运行任何内容之前查阅准确的语法,避免猜测参数。
google-cloud-recipe-auth
22k引导你的智能体了解 Google Cloud 的身份与访问管理,包括人员和服务如何登录,以及它们各自获得哪些权限。
google-cloud-recipe-onboarding
22k带领新开发者完成在 Google Cloud 上的第一步,包括选择项目、关联计费,以及部署第一个资源。