본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)22k · #10264

gke-ai-troubleshooting-handle-disruption-gpu-tpu

하는 일

이 스킬은 GKE GPU나 TPU 노드에서 AI 학습이나 추론 작업이 왜 중단되는지 조사합니다. 큰 AI 워크로드를 운영하며 예기치 않은 재시작을 줄이려는 플랫폼 팀을 위한 스킬입니다.

사용하는 경우

  • ✓호스트 유지 보수 이벤트 때문에 GKE의 GPU나 TPU 워크로드가 중단될 때.
  • ✓GPU나 TPU 노드 풀의 예정된 유지 보수를 예측하거나 확인하고 싶을 때.
  • ✓중단에 대비해 graceful termination이나 다른 워크로드 보호 설정이 필요할 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-handle-disruption-gpu-tpu/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-handle-disruption-gpu-tpu/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“GKE에서 GPU 학습 작업이 계속 재시작됩니다. 호스트 유지 보수가 원인인지 확인하고, 워크로드를 보호하는 방법을 제안해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

조사하기 전에 프로젝트, 위치, 클러스터, 시간을 묻습니다. 그다음 예정된 유지 보수, 노드 taint, 중단 지표를 확인하고 보호 설정을 추천합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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 kubectl to 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-time
    
  • Interpretation: The SCHEDULED-MAINTENANCE-TIME column 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_count filtered by interruption_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_count shows values > 0 for interruption_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_logs or 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-maintenance is set to ONGOING. To check if GKE has cordoned the terminating node to prevent new workloads from being scheduled, verify whether the cloud.google.com/impending-node-termination:NoSchedule taint is present (either in GKE event logs or directly via kubectl describe node).
  • Interpretation:
    • cloud.google.com/active-node-maintenance set to ONGOING means workloads are actively being stopped by GKE due to host maintenance.
    • cloud.google.com/impending-node-termination:NoSchedule taint 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
자주 묻는 질문

먼저 세부 정보를 묻나요?

네. 실제 중단이라면 조언하기 전에 프로젝트, 위치, 클러스터, 타임스탬프를 묻습니다.

GPU뿐 아니라 TPU도 다루나요?

네. GPU와 TPU 노드 풀을 모두 다룹니다.

어떤 설정을 추천할 수 있나요?

graceful termination과 기타 워크로드 보호 전략입니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
22k
순위
#10264
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬