apachekafkaconsumerlagrunbook
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "apachekafkaconsumerlagrunbook" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-57ddc3a50fe7bd5e292bb8d80f610e1b4b5d0c0d87d50127cb380c5719a7d6b5. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/apache-kafka-consumer-lag-runbook before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Diagnose Kafka consumer group lag using the Kafka AdminClient API and JMX metrics exposed via the Confluent Metrics API. Identify slow consumers, topic-partition hotspots, and broker rebalance storms that cause lag growth, and provide step-by-step runbooks to adjust fetch.min.bytes, max.poll.records, and partition counts.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "Apache Kafka Consumer Lag Runbook"
slug: "apache-kafka-consumer-lag-runbook"
version: "1.0.0"
displayName: "Apache Kafka Consumer Lag Runbook"
summary: "使用Kafka AdminClient API和通过Confluent Metrics API暴露的JMX指标来诊断Kafka消费者组延迟。识别导致延迟增长的慢消费者、主题分区热点和代理重新平衡风暴。提供逐步操作手册来调整fetch.min.bytes、max.poll.records和分区数量。"
license: "MIT"
description: "使用Kafka AdminClient API和通过Confluent Metrics API暴露的JMX指标来诊断Kafka消费者组延迟。识别导致延迟增长的慢消费者、主题分区热点和代理重新平衡风暴。提供逐步操作手册来调整fetch.min.bytes、max.poll.records和分区数量。"
github_stars: 32388
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
category: "Runbooks & Diagnostics"
framework: "Cursor"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 32388Apache Kafka消费者延迟操作手册
使用Kafka AdminClient API和通过Confluent Metrics API暴露的JMX指标来诊断Kafka消费者组延迟。识别导致延迟增长的慢消费者、主题分区热点和代理重新平衡风暴。提供逐步操作手册来调整fetch.min.bytes、max.poll.records和分区数量。
先决条件
Java
安装
使用与您的环境匹配的上游安装或设置路径:
- docker run -p 9092:9092 apache/kafka:latest
上游的要求和注意事项:
- 使用docker镜像:
- 有关详细信息,请参见docker/README.md
基本用法或入门说明:
-
构建JAR并运行
-
运行单元/集成测试
-
./gradlew test -Pkafka.test.run.flaky=true # 运行标记为不稳定的测试
-
Extracted from upstream docs: https://raw.githubusercontent.com/apache/kafka/HEAD/README.md
文档
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Kafka 消费者延迟诊断与调优的实用操作手册,面向运维人员解决生产环境问题
Highlights
- 触发描述清晰,涵盖诊断方法与关键调优参数,边界明确
Areas to improve
-
缺少端到端操作示例 Reported severity: Minor
文档未提供具体的命令、脚本或输出样例,用户难以直接执行
Recommendation: 补充实际 API 调用示例、JMX 指标查看命令及参数调整前后的对比效果
Areas to improve
-
缺少错误处理与确认机制 Reported severity: Minor
未说明网络异常、权限问题等常见故障的处理方式,也未对不可逆操作(如调整分区数量)提供确认提示
Recommendation: 增加异常处理说明,并对高风险操作添加用户确认步骤
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
- kafka.apache.org
- raw.githubusercontent.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.