Huawei Cloud Mrs Hdfs Performance Issue Analysis 标志

Huawei Cloud Mrs Hdfs Performance Issue Analysis

组织
huaweicloud
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性能分析"

概览

发布者huaweicloud
代码仓库huaweicloud-skills
技能名称huawei-cloud-mrs-hdfs-performance-issue-analysis
星标数
59
复刻数
24
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 huaweicloud 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Huawei Cloud Mrs Hdfs Performance Issue Analysis AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/bigdata/mrs/huawei-cloud-mrs-hdfs-performance-issue-analysis
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills.git /tmp/huaweicloud-skills
mkdir -p .claude/skills
cp -r /tmp/huaweicloud-skills/skills/bigdata/mrs/huawei-cloud-mrs-hdfs-performance-issue-analysis .claude/skills/huawei-cloud-mrs-hdfs-performance-issue-analysis
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Huawei Cloud Mrs Hdfs Performance Issue Analysis,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Huawei Cloud Mrs Hdfs Performance Issue Analysis。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Huawei Cloud Mrs Hdfs Performance Issue Analysis 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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):

ModeNameJudgment MethodRoot Cause
MODE01Large write volumeRPC elevated + Blocks Total rises synchronouslyLarge write operations (create/addBlock) drive RPC up
MODE02Business operations surgeRPC elevated + total operations rise synchronously (ops chart confirms the specific op type)Business-side operation volume increases RPC
MODE03Balance / stop instance / large deleteRPC elevated + pending deletion / under-replicated / excess blocks riseBalance, stop-instance, or large delete operations drive RPC up
MODE04NameNode node performance insufficientRPC elevated + disk IO rises or Block Report processing time increasesNameNode node itself has insufficient performance (disk IO, CPU, load, power-saving mode)

Related Alarms:

Alarm IDAlarm NameRelated Issue
ALM-14006HDFS 文件数超过阈值NameNode file object count exceeds memory plan
ALM-14007NameNode 堆内存使用率超过阈值NameNode memory insufficient
ALM-14014NameNode 进程 GC 时间超过阈值NameNode GC problem
ALM-14015DataNode 进程 GC 时间超过阈值DataNode GC problem
ALM-14021NameNode RPC 处理平均时间超过阈值NameNode RPC processing capacity insufficient
ALM-14022NameNode RPC 队列平均时间超过阈值NameNode RPC queue backlog

Log Paths:

Log TypePath
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, grep on 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 AnswerNext 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 alarmGo 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: With alarm

Provide the corresponding possible causes and quick-check commands based on the alarm type.

For ALM-14021 / ALM-14022 (RPC capacity insufficient), provide these quick-check commands directly:

bash
# 1. Check for Balance task (balancer.id creation time = balance start time)
hdfs dfs -ls /system/balancer.id

# 2. Check slow RPC, take the top 100 by latency, ascending
grep -i "slow rpc" /var/log/Bigdata/hdfs/nn/hadoop-omm-namenode-*.log | awk '{match($0, /took ([0-9]+)ms/, arr); print arr[1]" "$0}' | sort -rn | head -100 | sort -n | cut -d' ' -f2-

# 3. In the audit log, find the directory of the operation corresponding to the slow RPC
grep "<time>" /var/log/Bigdata/audit/hdfs/nn/hdfs-audit-namenode.log | grep -E "<op_type>"

# 4. Check NameNode GC
grep -i "fullgc\|Full GC" /var/log/Bigdata/hdfs/nn/namenode-omm-*-gc.log*

# 5. Check rack imbalance
grep -i "TOO_MANY_NODES_ON_RACK" /var/log/Bigdata/hdfs/nn/namenode-omm-server-*.log

# 6. Check NameNode node CPU and disk IO
top
iostat -x 1 5
# CPU over 60% or iostat %util persistently over 90% indicates a problem

# 7. Check whether CPU is in power-saving mode
# Step 1: if the count is 0, it is performance mode; otherwise go to step 2
ls /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor | wc -l
# Step 2: empty result means performance mode; non-empty means power-saving mode
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor | grep -v ondemand | grep -v performance | grep -v smartass

For ALM-14006 / ALM-14007 / ALM-14014 / ALM-14015 (memory / file object / GC), check whether NameNode file object count exceeds the memory plan. See Section 5 Root Cause Knowledge Base Chapter 1 and Chapter 2.

Scenario B: Without alarm

Provide 9 generic possible causes and the following quick-check commands:

bash
# 1. Check slow rpc
grep -i "slow rpc" /var/log/Bigdata/hdfs/nn/hadoop-omm-namenode-node-hostname.* | sort -nk 21

# 2. Check for Balance task
hdfs dfs -ls /system/balancer.id

# 3. Check large directory scan operations
grep -E "listStatus|contentSummary|quotaUsage" /var/log/Bigdata/audit/hdfs/nn/hdfs-audit-namenode.log

# 4. Check NameNode node CPU, load, disk IO
top && uptime && iostat -x 1 10

# 5. Check DataNode disk space (NameNode native page)

# 6. Check NameNode GC
grep -i "fullgc\|Full GC" /var/log/Bigdata/hdfs/nn/namenode-omm-*-gc.log*

# 7. Check rack imbalance
grep -i "TOO_MANY_NODES_ON_RACK" /var/log/Bigdata/hdfs/nn/namenode-omm-server-*.log

# 8. Check whether CPU is in power-saving mode
ls /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor | wc -l
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor | grep -v ondemand | grep -v performance | grep -v smartass

Decision:

Quick-Check ResultNext Step
Problem resolvedWorkflow ends, output root cause and solution
Problem persistsGo to Step 3

Step 3: Log Deep Analysis

When the quick check does not resolve the issue, the user provides logs for the abnormal time window.

3.1 Collect Required Logs
Log TypePath
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
TopUser operation log/var/log/Bigdata/audit/hdfs/nn/5min-TopUserOpCounts.log

Note: 5min-TopUserOpCounts.log is the canonical filename (the older /var/log/Bigdata/audit/hdfs/nn/top-user-operation-info path is deprecated).

3.2 Confirm Analysis Time Range

Before running the analyzer, ask the user for the abnormal time window (e.g. 2026-06-11 09:00:00 ~ 2026-06-11 12:00:00). Do not run analysis without a confirmed time range.

3.3 Run the Analyzer

Run the Python analyzer per Section 4 Core Commands. The analyzer extracts omaplugin metrics, slow RPC, audit log requests, TopUser operations, and Block Report statistics, then generates 11 HTML trend charts and an analysis summary in <log_dir>/trends/.

3.4 Four-Mode Correlation Analysis

After the trend charts are generated, compare the RPC elevation window against the other metrics. For each mode, explicitly state whether it is PRESENT or ABSENT and provide evidence (e.g. "RPC peak at 09:15, Blocks Total rose from 142,855,636 to 142,910,200 in the same window").

ModeJudgment MethodRoot CauseSolution
MODE01RPC elevated + nn_blockstotal_trend.html Blocks Total rises synchronouslyLarge write operations (create/addBlock)Find the write source, schedule writes off-peak; increase dfs.namenode.handler.count
MODE02RPC elevated + nn_topuser_all_trend.html total operations rise synchronously; use nn_topuser_ops_trend.html to confirm the specific op type (listStatus / contentSummary / getfileinfo / delete)Business-side operation volume surgeNegotiate with business side to lower op frequency; for large ops (listStatus / contentSummary) switch to smaller-grained stats; increase dfs.namenode.handler.count
MODE03RPC elevated + any of nn_pendingdeletionblocks_trend.html / nn_underreplicatedblocks_trend.html / nn_excessblocks_trend.html risesBalance / stop instance / large deleteLarge delete: batch off-peak, lower dfs.namenode.replication.work.multiplier.per.iteration; Balance: stop Balance, large cluster uses -f for partial node migration; stop instance: schedule off-peak, pre-assess RPC impact
MODE04RPC elevated + nn_io_trend.html disk IO rises OR nn_blockreport_trend.html Block Report processing time increasesNameNode node insufficient performance (disk IO high / CPU high / load high / power-saving mode / log compression archive IO surge)Disk IO high: migrate log dir to dedicated disk, use higher-performance disk, schedule log rolling off-peak; CPU high: find and migrate high-CPU process, keep NameNode CPU under 50%; load high: find load source, migrate non-HDFS processes; power-saving: switch to performance mode, disable power-saving in BIOS; log archive: schedule log rolling/compression off-peak

If multiple modes are PRESENT, rank them by impact and give the comprehensive root cause.

3.5 Output Analysis Conclusion

The analysis report is output in Markdown containing:

  • Analysis result table: analysis time, time range, log directory
  • Per-mode verdict: PRESENT / ABSENT with evidence
  • Root cause ranking and comprehensive solution
  • Trend chart file list and descriptions (so the user can open them in a browser)

4. Core Commands

4.1 Run the Analyzer

bash
# Linux
python3 <skill_dir>/scripts/hdfs_perf_analyze.py <log_dir> <time_start> <time_end>

# Windows
python <skill_dir>\scripts\hdfs_perf_analyze.py <log_dir> <time_start> <time_end>

Example:

bash
python3 scripts/hdfs_perf_analyze.py "/tmp" "2026-06-11 09:00:00" "2026-06-11 12:00:00"

4.2 Parse omaplugin Metrics

bash
# Extract a specific omaplugin metric (e.g. RPC processing time)
grep -E "key=nn_rpcprocessingtimeavgtime_client_rt" <log_dir>/omaplugin/*.log

4.3 Parse Slow RPC

bash
# Extract slow RPC and sort by latency
grep -i "slow rpc" <log_dir>/hadoop-omm-namenode/*.log | awk '{match($0, /took ([0-9]+)ms/, arr); print arr[1]" "$0}' | sort -rn | head -100

4.4 Parse Block Report

bash
# Extract processReport entries (blocks + processing time)
grep "processReport" <log_dir>/hadoop-omm-namenode/*.log | grep -oE "blocks: [0-9]+|processing time: [0-9]+ msecs"

4.5 Parse TopUser Operations

bash
# Extract 5min TopUser op counts
grep -E "300s Operation Collecter" <log_dir>/5min-TopUserOpCounts.log

5. Parameters

ParameterRequired/OptionalDescriptionDefault
log_dirRequiredDirectory containing the log files (supports zip auto-extraction for omaplugin / namenode / audit logs)N/A
time_startRequiredAnalysis start time, format YYYY-MM-DD HH:MM:SSN/A
time_endRequiredAnalysis end time, format YYYY-MM-DD HH:MM:SSN/A

5.1 Input Files (placed in log_dir)

FileDescriptionSupported Format
omaplugin*.logNameNode Agent monitoring log.log / .zip
hadoop-omm-namenode*.logNameNode runtime log.log / .zip
hdfs-audit-namenode*.logNameNode audit log.log / .zip
5min-TopUserOpCounts.logTopUser operation statistics log.log

6. Output Format

The analyzer generates 11 output files in <log_dir>/trends/:

FileDescriptionThreshold Line
nn_rpc_processing_trend.htmlRPC processing average time trend100ms
nn_rpc_queue_trend.htmlRPC queue average time trend400ms
nn_pendingdeletionblocks_trend.htmlPending deletion blocks count trend-
nn_underreplicatedblocks_trend.htmlUnder-replicated blocks count trend-
nn_excessblocks_trend.htmlExcess blocks count trend-
nn_blockstotal_trend.htmlTotal blocks count trend-
nn_io_trend.htmlNameNode disk IO read/write rate trend (combined)-
nn_topuser_ops_trend.htmlTopUser per-operation-type request count trend-
nn_topuser_all_trend.htmlTotal operations trend (sum of all RPC types, excluding all, hover shows value and time)-
nn_blockreport_trend.htmlNameNode Block Report trend (per-minute blocks sum + processing time sum, dual Y-axis)-
analysis_summary.txtAnalysis summary (contains root cause analysis)-

Trend chart styling rules:

  • Dark theme (background #0d1117, chart area #161b22)
  • SVG line chart with interactive hover tooltips (metric name, value, time)
  • Stats box (Peak / Min / Over Threshold)
  • Threshold reference line (red dashed) for metrics with thresholds
  • Each metric generates an independent HTML file
  • Y-axis labels use concrete numbers, not M / K abbreviations (e.g. 142,855,636 not 142.9M)

After the analyzer finishes, the report must list the trend chart file location (e.g. "Trend charts generated in <log_dir>/trends/") and each file's description so the user can open them in a browser.

7. Root Cause Knowledge Base

7.1 NameNode File Objects Exceed Memory Plan (ALM-14006 / ALM-14007 / ALM-14014)

File CountFile System Object CountRecommended JVM Params
5,000,00010,000,000-Xms6G -Xmx6G -XX:NewSize=512M -XX:MaxNewSize=512M
10,000,00020,000,000-Xms12G -Xmx12G -XX:NewSize=1G -XX:MaxNewSize=1G
25,000,00050,000,000-Xms32G -Xmx32G -XX:NewSize=3G -XX:MaxNewSize=3G
50,000,000100,000,000-Xms64G -Xmx64G -XX:NewSize=6G -XX:MaxNewSize=6G
100,000,000200,000,000-Xms96G -Xmx96G -XX:NewSize=9G -XX:MaxNewSize=9G
150,000,000300,000,000-Xms164G -Xmx164G -XX:NewSize=12G -XX:MaxNewSize=12G

Note: when modifying GC_OPTS, only modify the first four parameters.

Repair:

  1. If NameNode file objects are within 300 million, adjust JVM params and restart the NameNode instance to take effect.
  2. If file objects exceed 300 million, it is out of spec; clean up HDFS files to reduce the object count.

7.2 Single DataNode Block Count Exceeds Memory Plan

Per-DataNode Block CountRecommended JVM Params
2,000,000-Xms6G -Xmx6G -XX:NewSize=512M -XX:MaxNewSize=512M
5,000,000-Xms16G -Xmx16G -XX:NewSize=1G -XX:MaxNewSize=2G

Spec limit: a single DataNode instance supports up to 5,000,000 blocks.

Repair:

  1. Adjust DataNode memory config (HDFS service is unavailable during restart).
  2. Scale out data nodes.
  3. Delete unused files to reduce the block count.

7.3 NameNode RPC Processing Capacity Insufficient (ALM-14021 / ALM-14022)

Possible causes:

  1. Client large scan stats (listStatus / getContentSummary / getQuotaUsage)
  2. Cluster executing full Balance
  3. NameNode file objects exceed memory plan
  4. DataNode disk usage > 90% -> replica allocation retry
  5. NameNode node CPU high
  6. Primary NameNode host load increased
  7. Primary NameNode disk IO read/write rate increased
  8. NameNode node CPU in power-saving mode
  9. Rack node count severely imbalanced

Solutions per cause:

CauseSolution
Balance task runningStop Balance; large cluster uses -f for partial node migration
Large directory scanLower op frequency; smaller-grained stats; disable fine-grained monitoring
NameNode CPU highMigrate non-HDFS processes; keep CPU under 60%
NameNode disk IO insufficientUse higher-performance disk; mount NameNode instance on a dedicated disk
DataNode disk usage > 90%Scale out nodes; delete unused data; temporarily set dfs.namenode.redundancy.considerLoad=false
Rack node imbalanceKeep rack node count consistent
File objects exceed memory planAdjust NameNode memory config or delete unused files

7.4 DataNode Performance Insufficient (Write Slow)

Possible causes:

  1. Network anomaly between client and some DataNodes
  2. Single DataNode read/write concurrency high
  3. Some DataNode disk IO slow
  4. Network anomaly between DataNodes
  5. DataNode slow OS calls
  6. FoldedTreeSet slows down DataNode
  7. DirectoryScanner slows down DataNode writes
  8. fs.du.interval misconfigured (8 version before 8203 default 60000, adjust to 600000)
  9. PR inspection slows down DataNode

Slow log types:

Slow TypeMeaning
Slow BlockReceiver write packet to mirrorNetwork write block latency
Slow BlockReceiver write data to disk costBlock write to OS cache or disk latency
Slow flushOrSyncBlock write to OS cache or disk latency
Slow manageWriterOsCacheBlock write to OS cache or disk latency

Repair:

  1. Check network connectivity; investigate packet loss / errors.
  2. Adjust fs.du.interval.
  3. Avoid writing during PR inspection windows.
  4. Check DirectoryScanner config.
  5. For manageWriterOsCache slowness, set dfs.datanode.drop.cache.behind.writes=false and dfs.datanode.drop.cache.behind.reads=false.

8. Capacity Planning

8.1 NameNode Capacity Spec

File SizeFile Object Count
< 128MB1 (file) + 1 (block) = 2
> 128MB (e.g. 128G)1 (file) + 1024 (blocks) = 1025

Primary/standby NameNode max file object count: 300 million (corresponds to 150 million small files).

8.2 DataNode Capacity Spec

ItemSpec
Max block replica count per DataNode instance5,000,000
Max block replica count per DataNode per disk500,000
Minimum disk count per DataNode10

8.3 Cluster Block Total

HDFS Block * 3 (default replication factor).

8.4 Per-DataNode Average Block Count

HDFS Block * 3 / DataNode node count.

9. Common Tuning Parameters

ParameterDefaultTuning ValueDescription
dfs.namenode.handler.count64192NameNode handler thread count
ipc.server.read.threadpool.size15-NameNode request thread pool size
dfs.namenode.redundancy.considerLoadtruefalseTemporarily bypass busy nodes
fs.du.interval600006000008 version before 8203 needs adjustment
dfs.datanode.drop.cache.behind.writesfalse-Whether to drop write cache
dfs.datanode.drop.cache.behind.readsfalse-Whether to drop read cache

10. Verification Method

  1. Prepare a test log directory with the four log files listed in Section 5.1.

  2. Run the analyzer:

    bash
    python3 scripts/hdfs_perf_analyze.py "<test_log_dir>" "2026-06-11 09:00:00" "2026-06-11 12:00:00"
  3. Verify the 11 output files exist in <test_log_dir>/trends/:

    • 10 HTML trend charts
    • 1 analysis_summary.txt
  4. Open one HTML file in a browser, confirm the dark-theme SVG renders, hover over a data point, and confirm the tooltip shows metric name / value / time.

  5. For metrics with thresholds (RPC processing 100ms, RPC queue 400ms), confirm the red dashed threshold line is rendered.

11. Best Practices

  1. Do not skip stages: Always confirm alarms first -> quick check -> log deep analysis. Jumping straight to log analysis without confirming the time range leads to imprecise conclusions.
  2. Quick check needs no logs: In Step 2, only read-only commands are run on the cluster; no logs are required from the user.
  3. Log analysis must confirm the time range: Without a confirmed abnormal time window, the analyzer cannot pinpoint the root cause.
  4. Four modes must be checked one by one: For each mode, explicitly state PRESENT or ABSENT and provide evidence (metric values during the RPC-elevated window vs. normal window).
  5. Trend chart dark theme: All trend charts use the dark theme (background #0d1117); open them in a browser for hover tooltips.
  6. Y-axis uses concrete numbers: Do not abbreviate large numbers (e.g. use 142,855,636, not 142.9M).
  7. Cross-reference three log sources: Combine omaplugin trend charts, TopUser operation trend charts, and NameNode runtime logs to confirm the root cause.
  8. Read-only analysis: The analyzer performs local static analysis only; it does not connect to the cluster. Repair steps are suggestions; all repair actions require user confirmation.
  9. Command failure handling: When a specific log file is missing, the analyzer skips that extraction step and continues with the others; it does not abort the whole run.

12. References

ReferenceDescriptionRelated Section
FusionInsight HD Performance Problem Location GuideSource document for the three-stage pipeline, four correlation modes, and the capacity specs1. Overview, 5. Root Cause Knowledge Base
MRS HDFS Product DocumentationNameNode / DataNode architecture, memory planning, block report mechanism1. Overview, 7. Root Cause Knowledge Base
HDFS Operation GuideBalance operation, rack config, JVM tuning4. Core Commands, 9. Common Tuning Parameters

12.1 Diagnosis Checklist

When encountering an HDFS performance issue, check in the following order:

  1. Check for HDFS-related alarms (ALM-14006 / ALM-14007 / ALM-14014 / ALM-14015 / ALM-14021 / ALM-14022)
  2. Check whether NameNode file object count exceeds memory plan
  3. Check whether single-DataNode block count exceeds memory plan
  4. Check whether NameNode RPC processing time and queue time are normal (< 50ms)
  5. Check whether a Balance task is running
  6. Check NameNode node CPU and disk IO usage
  7. Check whether DataNode disk usage exceeds 90%
  8. Check for large delete operations
  9. Check for large directory scan operations (listStatus / getContentSummary)
  10. Check rack config correctness and rack node count balance
  11. Check whether log compression archive is in progress
  12. Check NameNode runtime log for slow RPC and exceptions
  13. Check audit log to identify operation source and target directory

12.2 Appendix

How to access the HDFS native page

Method 1: From the HDFS home page, click NameNode(Active).

Method 2: Open the URL directly:

text
https://<Manager IP>:20026/HDFS/NameNode/<instanceId>/dfshealth.html

instanceId can be found on the Manager page by hovering over the instance name.

How to restart NameNode without business interruption
  1. Confirm both primary and standby NameNode native pages show "Safemode is off".
  2. Restart the standby NameNode; wait until startup completes (Startup Progress all items at 100%).
  3. Perform active/standby switchover (current standby becomes primary).
  4. Restart the original primary NameNode (now standby).

NameNode startup time reference:

File CountObject CountApprox. Startup Time
10,000,00020,000,000~3 minutes
60,000,000150,000,000~8 minutes
120,000,000300,000,000~30 minutes
Balance operation guide
bash
# Set Balance max bandwidth (optional)
hdfs dfsadmin -setBalancerBandwidth 209715200  # 200MB/s

# Balance all DataNode nodes
sh /opt/client/HDFS/hadoop/sbin/start-balancer.sh -threshold 10

# Balance a subset of DataNode nodes
sh /opt/client/HDFS/hadoop/sbin/start-balancer.sh -include -f /tmp/includeHost.txt -threshold 10

# View Balance task progress
cat /opt/client/HDFS/hadoop/logs/hadoop-root-balancer-<hostname>.out

# Stop Balance task
sh /opt/client/HDFS/hadoop/sbin/stop-balancer.sh
HDFS shows disk space insufficient but 10% remains

This is expected. HDFS reserves 10% disk space for Yarn by default, so when disk usage reaches 90%, HDFS considers the space full.

13. Notes

  1. Static local analysis only: The analyzer reads local log files and does not connect to the MRS cluster. All repair steps are suggestions requiring user confirmation.
  2. Three-stage pipeline is mandatory: Alarm confirmation -> quick check -> log deep analysis. Do not skip stages.
  3. Time range confirmation is mandatory: In Step 3, the analysis time range must be confirmed before running the analyzer.
  4. Trend charts use the dark theme: Open HTML files in a browser for interactive hover tooltips.
  5. Four modes must be checked one by one: Each mode must be explicitly marked PRESENT or ABSENT with evidence.
  6. Zip auto-extraction: The analyzer auto-extracts omaplugin*.zip, hadoop-omm-namenode*.zip, and hdfs-audit-namenode*.zip into subdirectories before parsing.
  7. Output directory: All trend charts and the summary are written to <log_dir>/trends/; the analyzer creates this directory if it does not exist.
  8. 5min-TopUserOpCounts.log is the canonical TopUser log: The older top-user-operation-info path is deprecated.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Huawei Cloud Mrs Hdfs Performance Issue Analysis AI 技能有什么作用?

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 c...

为什么在 TypingMind 中使用 Huawei Cloud Mrs Hdfs Performance Issue Analysis?

因为您只需安装一次,就能搭配任何模型使用。Huawei Cloud Mrs Hdfs Performance Issue Analysis 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Huawei Cloud Mrs Hdfs Performance Issue Analysis?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/bigdata/mrs/huawei-cloud-mrs-hdfs-performance-issue-analysis。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Huawei Cloud Mrs Hdfs Performance Issue Analysis?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Huawei Cloud Mrs Hdfs Performance Issue Analysis 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Huawei Cloud Mrs Hdfs Performance Issue Analysis 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Huawei Cloud Mrs Hdfs Performance Issue Analysis AI 技能免费吗?

是的。huaweicloud 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇