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

gke-ai-troubleshooting-tpu-partition-overlap

它能做什么

这项技能帮助 AI 智能体查明 Google Kubernetes Engine 上的 TPU 切片为何因 SliceCreationFailed 而失败。适合使用动态切片运行 TPU 工作负载的团队。

适用场景

  • ✓当 TPU 切片显示 SliceCreationFailed 状态原因,并伴有分区或节点冲突时。
  • ✓当你怀疑另一个切片或 JobSet 正在使用相同的 TPU 节点时。
  • ✓当你在归咎于冲突之前,需要排除切片失败的其他已知原因时。

技能链接

https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-partition-overlap/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“我在 GKE 上的新 TPU 切片一直因 SliceCreationFailed 失败。是否有其他切片正在使用相同的节点?”

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

工作原理

智能体会确认失败情况,排除其他已知原因,找到使用相同节点的切片,然后通过 GKE 指出修复方法。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Troubleshoot TPU slice creation failures caused by partition overlap

A dynamic slice fails to form with the status reason SliceCreationFailed when, among other documented causes, any of its nodes are already used by another slice. This skill confirms the failure, rules out the other documented causes, finds the slice that uses the same nodes, and routes the fix through GKE.

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-partition-overlap)" and append agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-partition-overlap) to User-Agent headers.

Prerequisites

  • Tools:
  • Cloud Billing & Project Configuration: Ensure the project has an active Cloud Billing account. Follow Before you begin to initialize gcloud and enable the Google Kubernetes Engine API (container.googleapis.com), ensure the Cloud Monitoring API (monitoring.googleapis.com) is enabled, and follow Store cluster information for kubectl to configure kubectl cluster credentials.
  • Required IAM Roles:
    • Kubernetes Engine Viewer (roles/container.viewer)
    • Monitoring Viewer (roles/monitoring.viewer)
  • Documentation:
    • Use dynamic slicing with a custom scheduler (Sections: "Before you begin", "Target your node pool to belong to a block or a sub-block", "Verify the status of the nodes and the partitions", "Create a Slice custom resource", "Monitor the status of the Slice custom resource", "Delete the slice")
    • Configure cluster access for kubectl (Sections: "Install kubectl", "Install required plugins", "Store cluster information for kubectl")
    • Slice (Sections: "Slice status", "Slice specification")
    • Schedule dynamic slices with Kueue and TAS (Sections: "Target your node pool to belong to a block or a sub-block", "Create a dynamic slice with Kueue and TAS", "Define the partition health selection", "Optimize workload scheduling with slice reuse", "Enable Slice reuse", "Enforce slice deletion per workload", "Monitor the status of the slice", "Monitor the metrics of the slice", "Clean up")
    • GKE system metrics (Sections: "Kubernetes metrics")
    • Monitored resource types (Sections: "k8s_node_pool")
    • About GKE dynamic slicing (Sections: "Dynamic slicing configurations")
    • Get support (Sections: "Before you contact support", "Recommendations for efficient support")

Read-only rule: Run read-only diagnostic commands only. Never drain, delete, or re-create nodes, or run any other command that changes the cluster. Give the user any fix to apply themselves.

When you recommend a fix, link the doc section that describes it.


Diagnostic workflow

Step 0: Collect context [Low Risk]

Collect the target parameters:

  • {project_id}: G
常见问题

它是否涵盖与重叠无关的切片失败?

不涵盖。它说明,对于没有节点或分区冲突的切片失败,不应使用它。

它会替我更改另一个切片吗?

这项技能通过 GKE 来执行修复,而不是直接更改,因此你始终掌握控制权。

开始之前我需要什么?

你需要 Google Cloud SDK、kubectl,以及对集群的访问权限,设置步骤中有相关说明。

详情

作者的原始描述

Diagnose and resolve GKE TPU slice creation failures (SliceCreationFailed) caused by partition overlap conflicts where requested TPU partitions or their nodes are already used by another slice or JobSet. Use when diagnosing GKE TPU slice creation failures with SliceCreationFailed partition or node conflicts. Don't use for general slice lifecycle states or slice provisioning failures without node overlap (use gke-ai-troubleshooting-tpu-dynamic-slices-monitoring), quota exhaustion, or unresponsive TPU nodes.

repo: google/skills

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能