Logo van Huawei Cloud Mrs Hdfs Performance Issue Analysis

Huawei Cloud Mrs Hdfs Performance Issue Analysis

Organisatie
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性能分析"

Overzicht

Uitgeverhuaweicloud
Repositoryhuaweicloud-skills
Skillnaamhuawei-cloud-mrs-hdfs-performance-issue-analysis
Sterren
59
Forks
24
Meegeleverde bestanden
2
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 2

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door huaweicloud op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Huawei Cloud Mrs Hdfs Performance Issue Analysis in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/bigdata/mrs/huawei-cloud-mrs-hdfs-performance-issue-analysis
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Huawei Cloud Mrs Hdfs Performance Issue Analysis in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Huawei Cloud Mrs Hdfs Performance Issue Analysis automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Huawei Cloud Mrs Hdfs Performance Issue Analysis niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill 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 c...

Waarom Huawei Cloud Mrs Hdfs Performance Issue Analysis gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Huawei Cloud Mrs Hdfs Performance Issue Analysis bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Huawei Cloud Mrs Hdfs Performance Issue Analysis in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/bigdata/mrs/huawei-cloud-mrs-hdfs-performance-issue-analysis. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Huawei Cloud Mrs Hdfs Performance Issue Analysis gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Huawei Cloud Mrs Hdfs Performance Issue Analysis gebruiken?

Zoveel als je wilt. Je kunt Huawei Cloud Mrs Hdfs Performance Issue Analysis gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Huawei Cloud Mrs Hdfs Performance Issue Analysis gratis?

Ja. Deze skill is door huaweicloud op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇