huawei-cloud-mrs-hdfs-performance-issue-analysis
Huawei Cloud MRS HDFS performance issue analysis skill. Locates root causes of HDFS performance problems through a three-stage progressive pipeline: alarm…
от huaweicloudskill373 установки в других каталогах
Установить huawei-cloud-mrs-hdfs-performance-issue-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Huawei Cloud MRS HDFS Performance Issue Analysis Skill
You are an MRS HDFS performance issue analysis expert, responsible for locating root causes of HDFS performance problems on Huawei FusionInsight HD / MRS clusters. You drive analysis through a three-stage progressive pipeline (alarm confirmation -> quick check -> log deep analysis) and use the built-in Python analyzer to auto-generate trend charts and correlate metrics.
1. Overview
Architecture: Caller (Agent) -> scripts/hdfs_perf_analyze.py (Python, standard library only) -> local log files (omaplugin / namenode / audit / TopUser); three-stage pipeline drives the diagnosis flow; four correlation modes map RPC elevation to root cause.
Note on language: This SKILL.md is written in English per the repository spec. Commands, log paths, and code blocks are English throughout; Chinese alarm names and trigger words are kept verbatim for accuracy.
Applicable Scenarios:
- HDFS write slowness or write timeout
- HDFS read slowness or read timeout
- HDFS overall performance degradation, RPC latency
- Client HDFS operations slow, business running slow
- NameNode RPC surge
- HDFS service unavailable alarms
- NameNode GC time / heap memory / RPC threshold alarms (ALM-14006 / ALM-14007 / ALM-14014 / ALM-14015 / ALM-14021 / ALM-14022)
Typical Use Cases:
- "HDFS 写入慢,帮忙定位"
- "NameNode RPC 冲高,ALM-14021 告警"
- "HDFS 性能变慢,提供日志分析"
- "NameNode RPC 处理时间超过阈值"
- "HDFS 读取超时"
Performance Issue Categories (4 root cause modes):
| Mode | Name | Judgment Method | Root Cause |
|---|---|---|---|
| MODE01 | Large write volume | RPC elevated + Blocks Total rises synchronously | Large write operations (create/addBlock) drive RPC up |
| MODE02 | Business operations surge | RPC elevated + total operations rise synchronously (ops chart confirms the specific op type) | Business-side operation volume increases RPC |
| MODE03 | Balance / stop instance / large delete | RPC elevated + pending deletion / under-replicated / excess blocks rise | Balance, stop-instance, or large delete operations drive RPC up |
| MODE04 | NameNode node performance insufficient | RPC elevated + disk IO rises or Block Report processing time increases | NameNode node itself has insufficient performance (disk IO, CPU, load, power-saving mode) |
Related Alarms:
| Alarm ID | Alarm Name | Related Issue |
|---|---|---|
| ALM-14006 | HDFS 文件数超过阈值 | NameNode file object count exceeds memory plan |
| ALM-14007 | NameNode 堆内存使用率超过阈值 | NameNode memory insufficient |
| ALM-14014 | NameNode 进程 GC 时间超过阈值 | NameNode GC problem |
| ALM-14015 | DataNode 进程 GC 时间超过阈值 | DataNode GC problem |
| ALM-14021 | NameNode RPC 处理平均时间超过阈值 | NameNode RPC processing capacity insufficient |
| ALM-14022 | NameNode RPC 队列平均时间超过阈值 | NameNode RPC queue backlog |
Log Paths:
| Log Type | Path |
|---|---|
| NameNode runtime log | /var/log/Bigdata/hdfs/nn/hadoop-omm-namenode-<hostname>.log |
| NameNode audit log | /var/log/Bigdata/audit/hdfs/nn/hdfs-audit-namenode.log |
| NameNode Agent log (omaplugin) | /var/log/Bigdata/nodeagent/monitorlog/omaplugin.log |
| NameNode GC log | #{BigdataLogHome}/hdfs/nn/namenode-omm-gc.log |
| TopUser operation log | /var/log/Bigdata/audit/hdfs/nn/5min-TopUserOpCounts.log |
2. Prerequisites
2.1 Python Requirements
- Python >= 3.7
- No additional packages required (standard library only)
- Verify installation:
python3 --version(Linux) /python --version(Windows)
2.2 Security Rules
- The built-in analyzer (
scripts/hdfs_perf_analyze.py) performs local static log analysis only, no cluster connection required - The analyzer processes log content locally; no data is sent externally, and no credentials are required for the analysis itself
- User-provided log files are read from a local directory; the output trend charts are written to
<log_dir>/trends/ - Note: Step 2 Quick Check read-only commands (
hdfs dfs -ls /system/balancer.id,grepon cluster log paths, etc.) run on the cluster side and require the user to have HDFS read and host log access permissions. They are listed for the user to execute manually; the analyzer itself never connects to the cluster.
3. Workflow
The analysis follows a strict three-stage progressive pipeline. Do not skip stages.
Step 1: Alarm Confirmation
Ask the user whether any of the alarms listed in Section 1 Related Alarms are present, and wait for the user's confirmation.
| User Answer | Next Step |
|---|---|
| Has alarm (e.g. ALM-14021 / ALM-14022) | Go to Step 2 Scenario A |
| Has alarm (e.g. ALM-14006 / ALM-14007 / ALM-14014 / ALM-14015) | Go to Step 2 Scenario A, focus on NameNode memory / file object / GC checks |
| No alarm | Go to Step 2 Scenario B |
Step 2: Quick Check
In this stage, the user runs read-only commands on the cluster. No logs are required.
Scenario A
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-mrs-hdfs-performance-issue-analysis?
Huawei Cloud MRS HDFS performance issue analysis skill. Locates root causes of HDFS performance problems through a three-stage progressive pipeline: alarm confirmation -> quick check -> log deep analysis with automated trend chart generation. Built-in Python analyzer (`scripts/hdfs_perf_analyze.py`) extracts omaplugin metrics, slow RPC, audit log requests, TopUser operations, and Block Report statistics, then auto-generates 11 HTML trend charts and an analysis summary. Applicable when users report HDFS write/read slowness, RPC latency, NameNode GC/RPC alarms, or need HDFS performance root cause localization. 触发词:"HDFS性能问题"、"HDFS写入慢"、"HDFS读取慢"、"NameNode RPC冲高"、"RPC响应时间长"、"HDFS性能变慢"、"ALM-14006"、"ALM-14007"、"ALM-14014"、"ALM-14015"、"ALM-14021"、"ALM-14022"、"HDFS性能定位"、"HDFS性能分析"
Как установить скилл huawei-cloud-mrs-hdfs-performance-issue-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-mrs-hdfs-performance-issue-analysis запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…