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

gke-ai-troubleshooting-jobset-interruption

하는 일

이 스킬은 Google Kubernetes Engine에서 JobSet으로 실행되는 중단된 AI와 머신러닝 학습 작업을 조사합니다. 대규모 학습이 계속 실패하거나 재시작되는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓GKE의 JobSet 학습 작업이 재시작 루프에 빠져 있을 때.
  • ✓스팟 VM이 선점되어 AI 학습 워크로드가 멈출 때.
  • ✓노드 준비 실패나 코디네이터 워커 충돌 때문에 JobSet이 멈출 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-jobset-interruption/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-jobset-interruption/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에서 JobSet 학습 실행이 계속 재시작됩니다. 스팟 VM 선점이나 노드 문제 중 무엇이 원인인지 알려 주세요.”

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

작동 방식

워크로드의 시간 범위에 대한 클러스터와 모니터링 데이터를 사용해 각 재시작의 원인을 찾습니다. 그다음 진단 단계를 따라 결과와 해결 방법을 보고합니다.

기술 내용 (원본 SKILL.md)

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

GKE JobSet Interruption Troubleshooting

Use this skill to systematically diagnose and resolve JobSet interruptions, restarts, and preemptions on GKE clusters hosting large-scale AI/ML workloads.

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

⚠️ Prerequisites & Sandbox Rules

  • JobSet metrics package must be enabled in kube-state-metrics for your cluster.
  • Cloud Logging and Cloud Monitoring enabled for the Google Cloud Project.
  • Autonomous & Sandbox Execution Rule: If API queries, tools, or commands encounter 403 Permission Denied, authentication errors, or network isolation, do NOT enter authentication or credential troubleshooting loops. Populate the query templates with the acquired variables ({project_id}, {cluster_name}, {workload_name}, {start_time}, {end_time}), inspect any locally staged telemetry or mock data files if available, and complete the diagnostic workflow and resolution recommendations autonomously.

🔍 Diagnostic Workflow

Step 0: Context Acquisition & Time Window Definition

Independently gather context using tools, workspace files, environment details, or user prompt context:

  • Project ID ({project_id})
  • Cluster Name ({cluster_name})
  • Workload Name (JobSet Name) ({workload_name})
  • Workload Namespace ({namespace})
  • Issue Time ({issue_time})

If specific variables are not explicitly provided by the user, inspect cluster resources or logs to determine them, or use the {variable} placeholders provided.

Time Handling Rules

  1. Autonomous Time Window: If a relative time (e.g., "X minutes ago") or no exact timestamp is provided, calculate the query window based on current time or available log timestamps.
  2. Window Calculation: If a timestamp {issue_time} is available (or calculated as T), set {start_time} = T - 30m and {end_time} = T + 30m.

Step 1: Identify JobSet Restarts and Attempts [Low Risk]

Verify if the JobSet is experiencing restart loops and determine the frequency of restarts.

Visual Chart / MQL Query - restarts

  • MQL Query Specification:

    fetch prometheus_target
    | metric 'prometheus.googleapis.com/kube_jobset_restarts/gauge'
    | filter resource.cluster_name == '{cluster_name}' && metric.jobset_name == '{workload_name}'
    | align next_older(1m)
    | every 1m
    | group_by [metric.jobset_name], [val: max(value)]
    

PromQL Metric Query - restarts

  • PromQL Query Specification:

    kube_jobset_restarts{jobset_name="{workload_name}", cluster="{cluster_name}"}
    
  • Diagnostic Logic: A non-zero or increasing value for restarts indicates that the JobSet is being actively restarted by the controller due to worker failure or interruption.

  • Automation: Proceed to Step 2 automatically after reporting findings.


Step 2: Inspect Nodepool Interruptions [Low Risk]

Determine if the JobSet restarts were triggered by physical nodepool-level events (such as spot preemptions, maintenance, or host terminations).

A. Metrics Query (Nodepool Interruption Counts)

Visual Chart / MQL Query - interruptions
  • MQL Query Specification:

    fetch k8s_node_pool
    | metric 'kubernetes.io/node_pool/interruption_count'
    | filter cluster_name == '{cluster_name}'
    | align next_older(10m)
    | every 10m
    | group_by [metric.interruption_type, metric.interruption_reason, metadata.system.node_pool_name], [val: sum(value)]
    
PromQL Query - interruptions
  • PromQL Query Specification:

    sum by (interruption_type, interruption_reason, node_pool_name, cluster_name) (
      avg_over_time(kubernetes_io:node_pool_interruption_count{cluster_name="{cluster_name}"}[10m])
    )
    

B. Log Qu

자주 묻는 질문

일반적인 GKE 앱 문제도 다루나요?

아닙니다. JobSet 중단만 다루며, 일반적인 애플리케이션이나 클러스터 문제는 다루지 않습니다.

먼저 무엇을 켜야 하나요?

kube-state-metrics의 JobSet 지표, 그리고 프로젝트의 Cloud Logging과 Cloud Monitoring이 필요합니다.

접근이 거부되면 어떻게 하나요?

자격 증명에 막히지 않고, 가진 데이터를 사용해 진단을 마무리합니다.

상세 정보

작성자의 원본 설명

Diagnoses GKE JobSet interruptions, restarts, and preemptions for AI/ML training workloads autonomously. Use when troubleshooting JobSet restart loops, spot VM preemptions, node readiness failures, host VM issues, or coordinator worker crashes. Don't use for general GKE cluster creation, basic workload deployment, or non-JobSet application issues.

repo: google/skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬