Doris 数据导入故障排查
doris-debug-import
用于排查 Doris 的 Stream/Broker/Routine Load 导入问题以及 Group Commit async_mode 的 WAL 堆积。可调参数:表级 group_commit_interval_ms / group_commit_data_bytes;BE 级 group_commit_insert_threads、group_commit_wal_path、group_commit_wal_max_disk_limit。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 50
- Forks
- 15
01 前言 Front Matter
- name
- doris-debug-import
- version
- 0.1.0
- category
- import
- description
- Use for Doris Stream/Broker/Routine Load issues and Group Commit async_mode WAL pile-up. Tunables: table group_commit_interval_ms / group_commit_data_bytes; BE group_commit_insert_threads, group_commit_wal_path, group_commit_wal_max_disk_limit.
02 资源文件 3
03 SKILL.md 正文
Import / Group Commit
async_mode WAL semantics
Write WAL → RPC returns → background group commit → delete_wal on success
(group_commit_mgr.cpp). Drain rate = commit finish rate ≠ compaction GB/s.
Knobs (config.cpp)
| Config | Default | Role |
|---|---|---|
group_commit_insert_threads |
10 | commit worker pool |
group_commit_relay_wal_threads |
10 | WAL replay |
group_commit_wal_path |
under storage_root | WAL disks |
group_commit_wal_max_disk_limit |
10% | WAL quota |
table group_commit_data_bytes |
often 64MB | size flush |
table group_commit_interval_ms |
often 10000 | time flush |
High MB/s guidance
- Split load across BEs (WAL is local to coordinator BE).
wal-duon each BE storage path.- Prefer dedicated NVMe for
group_commit_wal_path. - A/B
group_commit_data_bytes(128MB vs 512MB) — size threshold dominates when ingest ≫ interval. sync_modeor client throttle for backpressure.
./scripts/doris-debug wal-du /path/to/be/storage
./scripts/doris-debug log-grep be/log --pack group_commit
04 同仓库更多 Skills
doris-pr-description
Write, rewrite, or check the title and description of an Apache Doris pull request against the Doris PR standard. Takes the facts from the handoff file that development left when there is one, and collects them from the diff, commits, linked issue, and existing tests otherwise; classifies the PR type, fills that type's required fields, drafts the issue a Feature needs, validates the draft with a bundled checker, and creates or updates the PR on GitHub only after the user confirms. Use whenever the user wants to open, create, submit, or update a Doris PR; write, fix, or improve a PR title or description; prepare a branch for review; rewrite an existing PR's description for comparison; or check whether a description meets the standard. Also use for short requests in any language, such as "open a PR", "write the PR description", or "is this PR description good enough?", even when the standard is not mentioned.
develop-with-evidence
暂无简介
Doris PR 代码审查
doris-repo-review
从本地 clone 审查 Apache Doris PR,使用与 CI Code Review Runner 相同的多智能体、共享账本收敛工作流。当用户提供一个 PR 给 `/doris-repo-review`、要求在本地审查 Doris PR,或要求 CI 风格的审查流程时使用。安全地仅将当前 worktree 对齐到确切的 PR head,拒绝干扰已跟踪的本地更改,编写对等的英文和中文审查文档并附带经过验证的路径行锚点,绝不构建、测试或编辑源码。只有在明确选择合格审查者并使用受支持的 effort(xhigh 或 max,Codex 另支持 ultra)时,才将审查视为等同流水线;Codex 上优先 GPT-6 Astra,Claude Code 上优先 Fable 5.1。在收敛出 APPROVE 结果后,自动发布一条绑定到被审查 commit 的机器可读 PASS 评论。
Doris 查询 Profile 性能分析
doris-profile-reader
解读 Apache Doris 查询运行时 profile,尤其包括 profile 瓶颈分诊、误导性等待计数器、每算子指标优先级、扫描、join 顺序/运行时过滤分析,以及基于证据的性能解释。当给定 Doris profile、query id、profile URL/文本,或要求解释 Doris 查询性能时使用。
Doris Tablet 故障诊断
doris-debug-tablet
用于 Doris tablet/副本健康、版本倾斜、克隆积压、磁盘均衡以及 tablet 修复。命令:SHOW PROC tablet_health、SHOW TABLET、ADMIN REPAIR。
Doris 资源隔离调试
doris-debug-resource-isolation
用于 Doris Workload Group / 资源标签队列饥饿、CPU/内存隔离泄漏以及工作负载策略调试。命令:SHOW WORKLOAD GROUPS、EXPLAIN resource。