gke-ai-troubleshooting-tpu-vbar-oom
ما الذي تفعله
تساعد هذه المهارة وكيل الذكاء الاصطناعي على تشخيص تعطلات vbar_control_agent وأخطاء نفاد الذاكرة وفشل بدء تشغيل جهاز TPU على عقد TPU v6e في GKE. وهي مخصصة للمشغّلين الذين يرون هذه الأخطاء في سجلاتهم.
متى تستخدمها
- ✓عندما تتعطل عملية vbar_control_agent بخطأ segfault على عقدة TPU v6e.
- ✓عندما تُظهر سجلات وحدة التحكم التسلسلية خطأ نفاد ذاكرة في memory cgroup على عقدة TPU في GKE.
- ✓عندما يفشل تهيئة جهاز TPU بعد إعادة ضبط الجهاز على عقدة v6e.
رابط المهارة
https://github.com/google/skills/blob/main/skills/cloud/gke-ai-troubleshooting-tpu-vbar-oom/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“عقدة TPU v6e الخاصة بي في GKE تتعطل باستمرار بخطأ نفاد ذاكرة. ما الذي يحدث؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يراجع الوكيل السجلات من وقت المشكلة تقريبا، ويفحص أخطاء checksum في المقاييس، وتوقيت إعادة ضبط الجهاز، ومدى تكرار سحب المقاييس.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
TPU Connection Failure and VBAR OOM Troubleshooting
Use this skill to systematically diagnose and prevent vbar_control_agent
segfaults and Out-Of-Memory (OOM) errors on TPU v6e nodes.
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-vbar-oom)"
and append agent-skills/1.0 (skill:gke-ai-troubleshooting-tpu-vbar-oom) to User-Agent headers.
⚠️ Prerequisites
- Cloud Logging must be enabled for the project.
- Access to the project and cluster via
gcloudor equivalent tool.
🔍 Diagnostic Workflow
Step 0: Context Acquisition & Time Window Definition
Independently gather required context using available GCP/GKE tools or use the
provided {variable} placeholders:
{project_id}: The GCP Project ID (e.g.,customer-ai-project-123).{cluster_name}: The GKE Cluster Name (e.g.,tpu-cluster-prod).{node_name}: The Node Name or Instance ID (e.g.,tpu-node-1).{workload_name}: The Workload Name / JobSet Name (e.g.,my-training-job-456).{namespace}: The Workload Namespace.{issue_time}: The timestamp of the issue (e.g.,2026-04-14T20:00:00Z).
Time Handling & Execution Rules
- Window Calculation: If an issue timestamp
{issue_time}is provided, calculate the query time window as[{issue_time} - 30m]to[{issue_time} + 30m].- Let
{start_time}={issue_time} - 30m - Let
{end_time}={issue_time} + 30m
- Let
- Informational vs. Live Execution: If the user request is informational or query-formulation (e.g. "How can I check...", "How do I determine..."), or if live GCP project resources are not actively targetable, directly output the calculated time window, log names, and Cloud Logging filter templates without attempting live log execution commands.
Step 1: Check for vbar_control_agent OOMs
Look for specific out of memory messages from vbar_control_agent in serial
console logs (serialconsole.googleapis.com%2fserial_port_1_output).
- Tool to use:
query_logs(for live diagnostics) - Filter Templates:
Serial Console Logs (OOMs):
logName="projects/{project_id}/logs/serialconsole.googleapis.com%2fserial_port_1_output"
AND labels."compute.googleapis.com/resource_name"="{node_name}"
AND SEARCH(text_payload, "Memory cgroup out of memory: Killed process .* (vbar_control_ag)")
AND timestamp >= "{start_time}"
AND timestamp <= "{end_time}"
- Logic: Presence of
Memory cgroup out of memorymessages related tovbar_control_agent. Stack traces pointing tolibtpu::tpunetd::VBARControlHelper::MetricsReadFromVBARare a strong indicator. - Automation: Proceed to next step automatically after reporting findings.
- Reference: See
references/failure_signatures.mdfor example log patterns.
Step 2: Investigate tpu-device-plugin Metrics Fetch Failures [Low Risk]
Check if tpu-device-plugin is reporting metric fetch failures.
- Tool to use:
query_logs - Filter Template:
resource.type="k8s_container"
AND resource.labels.project_id="{project_id}"
AND resource.labels.cluster_name="{cluster_name}"
AND resource.labels.container_name="tpu-device-plugin"
AND severity=ERROR
AND textPayload:"metrics fetch failed for .* deviceID and .* device path with error: checksum didn't match with the metrics data. Corrupt data found"
AND timestamp >= "{start_time}"
AND timestamp <= "{end_time}"
- Logic: Errors indicating "metrics fetch failed" with "checksum didn't match" suggest vBAR memory corruption.
- Automation: Proceed to next step automatically after reporting findings.
Step 3: Check for Custom Metrics Collection Usage [Low Risk]
Inspect cluster configurations, workloads, or container specs to determine if custom TPU metrics collection mechanisms are deployed.
Action: Check if custom scripts or agents (e.g., using
libtpu.sdk.tpumonitoring) are deployed that frequently queryGetHostMetricsfromvBAR Control Agent.Verification Commands:
- Kubectl Search (Inspect workload env/specs):
kubectl get pods -A -o jsonpath='{range .ite
الأسئلة الشائعة
أي إصدار من TPU تغطي؟
تغطي عقد TPU v6e في GKE.
هل تحتاج إلى Cloud Logging؟
نعم. يجب تفعيل Cloud Logging للمشروع قبل أن تعمل المهارة.
ماذا أعطي الوكيل للبدء؟
أكثر المعلومات فائدة هي معرّف المشروع واسم الكلستر واسم العقدة والوقت الذي حدثت فيه المشكلة.
التفاصيل
الوصف الأصلي من المؤلف
Diagnoses and prevents vbar_control_agent segfaults, out-of-memory (OOM) errors, and TPU device initialization failures on TPU v6e nodes in GKE caused by race conditions during TPU device resets or high-frequency metrics polling. Use when troubleshooting vbar_control_agent crashes, memory cgroup OOMs in serial console logs, tpu-device-plugin metrics checksum corruption errors, or custom TPU metrics collection conflicts on GKE TPU v6e nodes. Don't use for general non-TPU container OOM troubleshooting or standard GKE node lifecycle operations.
repo: google/skills
الشعبية
- نجوم GitHub
- 22k
- الترتيب
- #10274
- الترخيص
- Apache-2.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
finding-google-skills
22kيساعد وكيلك على إيجاد أدلة Google المناسبة لمهمة إعداد، مثل الاستضافة وقواعد البيانات والتخزين وتسجيل الدخول وتقديم نماذج الذكاء الاصطناعي.
gcloud
22kيساعد وكيلك على كتابة أوامر gcloud الخاصة بـ Google Cloud والتحقق منها، والاطلاع على الصيغة الدقيقة قبل تشغيل أي شيء حتى لا يخمّن الخيارات.
google-cloud-recipe-auth
22kيرشد وكيلك خلال هوية Google Cloud والوصول إليها، بما في ذلك طريقة دخول الأشخاص والخدمات والأذونات التي يحصلون عليها.
google-cloud-recipe-onboarding
22kيرشد مطورًا جديدًا خلال الخطوات الأولى في Google Cloud، ويشمل اختيار المشروع وربط الفوترة ونشر أول مورد.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.