gke-ai-troubleshooting-handle-disruption-gpu-tpu
Skill này làm gì
Skill này điều tra vì sao các job huấn luyện hoặc suy luận AI trên node GPU hoặc TPU của GKE bị gián đoạn. Skill dành cho các đội nền tảng chạy khối lượng công việc AI nặng và cần ít lần khởi động lại bất ngờ hơn.
Khi nào nên dùng
- ✓Khi khối lượng công việc GPU hoặc TPU trên GKE bị gián đoạn do sự kiện bảo trì máy chủ.
- ✓Khi bạn muốn dự đoán hoặc kiểm tra bảo trì sắp tới trên các node pool GPU hoặc TPU.
- ✓Khi bạn cần thiết lập kết thúc an toàn hoặc các biện pháp bảo vệ khác cho khối lượng công việc khi gián đoạn xảy ra.
Liên kết skill
https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-handle-disruption-gpu-tpu/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Các job huấn luyện GPU trên GKE của tôi liên tục khởi động lại. Kiểm tra xem bảo trì máy chủ có gây ra điều này không và gợi ý cách bảo vệ khối lượng công việc.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill hỏi dự án, vị trí, cụm và thời điểm trước khi điều tra. Sau đó skill kiểm tra lịch bảo trì, taint của node và các chỉ số gián đoạn, rồi đề xuất các thiết lập bảo vệ.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Handle Disruption on GPUs and TPUs Troubleshooting
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-handle-disruption-gpu-tpu)"
and append agent-skills/1.0 (skill:gke-ai-troubleshooting-handle-disruption-gpu-tpu) to User-Agent headers.
🔍 Diagnostic Workflow
Step 0: Context Acquisition
- Mandatory: When a user asks to debug or investigate an actual workload
disruption, node crash, or unexpected restart without providing complete
cluster details, you MUST immediately halt and request all missing mandatory
parameters (
project_id,location,cluster_name,timestamp) BEFORE delivering theories or general diagnostic commands. Only skip context acquisition if the user explicitly requests a generic reusable runbook or provides a complete static telemetry/log dump for offline analysis. - Optional:
node_name,workload_name,workload_namespace,nodepool_name.
Step 1: [Low Risk] Check for Upcoming Scheduled Maintenance
Action: Propose running
kubectlto check if nodes have the scheduled maintenance label indicating an upcoming disruption.Example Command:
kubectl get nodes -l cloud.google.com/scheduled-maintenance-time -L cloud.google.com/scheduled-maintenance-timeInterpretation: The
SCHEDULED-MAINTENANCE-TIMEcolumn shows the Unix epoch time when the VM is scheduled for maintenance. If this label exists, a disruption is guaranteed to occur.
Step 2: [Low Risk] Investigation via Cloud Monitoring (PromQL)
Action: Call any available monitoring tool or provide PromQL for manual verification.
Mandatory Monitoring Rule: Whenever recommending follow-up monitoring or interruption tracking over time, you MUST explicitly present a PromQL query using the metric
kubernetes_io:node_interruption_countfiltered byinterruption_reason="HW/SW Maintenance". Do not suggest general Cloud Monitoring dashboards or Metrics Explorer without providing this specific PromQL metric expression.Example Query:
# Fetch host maintenance events for nodes sum by (interruption_type,interruption_reason)( sum_over_time( kubernetes_io:node_interruption_count{monitored_resource="k8s_node", interruption_reason="HW/SW Maintenance"}[${__interval}]))# See the interruption count aggregated by node pool sum by (node_pool_name,interruption_type,interruption_reason)( sum_over_time( kubernetes_io:node_pool_interruption_count{monitored_resource="k8s_node_pool", interruption_reason="HW/SW Maintenance", node_pool_name="{nodepool_name}" }[${__interval}]))Interpretation: If
kubernetes_io:node_interruption_countshows values > 0 forinterruption_reason="HW/SW Maintenance", it indicates the underlying Compute Engine VM was interrupted due to scheduled host maintenance.
Step 3: [Low Risk] Investigation via Cloud Logging & Node Taints
- Action: Call
query_logsor instruct the user to filter their GKE logs for active host maintenance events, and check node taints. - Guidance: Look for occurrences in Cloud Logging where
cloud.google.com/active-node-maintenanceis set toONGOING. To check if GKE has cordoned the terminating node to prevent new workloads from being scheduled, verify whether thecloud.google.com/impending-node-termination:NoScheduletaint is present (either in GKE event logs or directly viakubectl describe node). - Interpretation:
cloud.google.com/active-node-maintenanceset toONGOINGmeans workloads are actively being stopped by GKE due to host maintenance.cloud.google.com/impending-node-termination:NoScheduletaint means GKE has cordoned the node to prevent new Pods from being scheduled on the terminating node. DO NOT recommend tolerating this taint.
Step 4: Conclusion and Resolution
- Action: Provide a summary of findings to the user and suggest appropriate mitigation strategies if host maintenance events were confirmed or scheduled.
- **Reporting
Câu hỏi thường gặp
Skill có hỏi chi tiết trước không?
Có. Với một gián đoạn thực tế, skill hỏi dự án, vị trí, cụm và dấu thời gian trước khi đưa ra lời khuyên.
Skill có bao gồm TPU cũng như GPU không?
Có. Skill bao gồm cả node pool GPU và TPU.
Skill có thể đề xuất thiết lập nào?
Kết thúc an toàn (graceful termination) và các chiến lược bảo vệ khối lượng công việc khác.
Chi tiết
Mô tả gốc của tác giả
Diagnoses, predicts, and mitigates node disruptions during Compute Engine host maintenance and hardware or software maintenance events for GPU and TPU workloads on GKE. Use when diagnosing node disruptions, predicting host maintenance events on GPU/TPU nodepools, inspecting node interruption PromQL metrics, auditing node taints, or configuring workload protection strategies (graceful termination, opportunistic maintenance, PodDisruptionBudgets). Don't use for general GKE cluster creation, network policy configuration, or non-disruption workload deployment.
repo: google/skills
Độ phổ biến
- Sao GitHub
- 22k
- Vị trí xếp hạng
- #10264
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
finding-google-skills
22kGiúp agent của bạn tìm hướng dẫn Google phù hợp cho việc thiết lập, như hosting, cơ sở dữ liệu, lưu trữ, đăng nhập hoặc phục vụ mô hình AI.
gcloud
22kGiúp agent của bạn viết và kiểm tra các lệnh gcloud của Google Cloud, tra cứu cú pháp chính xác trước khi chạy bất cứ thứ gì để không đoán các flag.
google-cloud-recipe-auth
22kHướng dẫn agent của bạn qua quản lý danh tính và quyền truy cập của Google Cloud, gồm cách con người và dịch vụ đăng nhập và những quyền họ nhận được.
google-cloud-recipe-onboarding
22kHướng dẫn một lập trình viên mới qua các bước đầu tiên trên Google Cloud, gồm chọn dự án, liên kết thanh toán và triển khai tài nguyên đầu tiên.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.