troubleshoot-cassandra
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "troubleshoot-cassandra":https://skillpi.com/zh/skills/deepskill-88371d064b3c085e11fe69e0973c8db02a8799e09b3fc791b7dcb57502f85066。安装前核对上游来源和版本:https://github.com/Kilo-Org/kilo-marketplace。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
诊断 Apache Cassandra 的特定问题:GC 死亡螺旋、压缩死亡螺旋、墓碑风暴以及磁盘空间耗尽或提示溢出。通过 MCP 查询 Netdata 以获取节点存活状态(故障检测器)、原生传输是否活跃、客户端请求速率(读/写)和客户端请求延迟(协调器),并根据 Netdata 运维手册的诊断树推荐修复措施。
介绍来源: third_party · Kilo-Org · 0.0.1 参考来源
SkillPi 解读
- 适合谁
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: troubleshoot-cassandra
description: >-
Use when diagnosing issues with Apache Cassandra: gc death spiral, compaction
death spiral, tombstone storm, disk space exhaustion, or hint overflow.
Queries Netdata via MCP for node liveness (failure detector), native transport
active, client request rate (read/write), client request latency
(coordinator), applies the diagnostic tree from the Netdata operator playbook,
and recommends remediation.
metadata:
upstream:
version: 0.1.0
author: Netdata
tags:
- netdata
- troubleshoot
- mcp
- cassandra
category: observability
source:
repository: 'https://github.com/netdata/skills'
path: skills/troubleshoot-cassandra
license_path: LICENSE
commit: ae650fc3766642f14e29892ab4fed607ac29d263Troubleshoot Apache Cassandra
When to use this skill
- GC Death Spiral: Heap pressure then long GC pauses then gossip failures then node marked DOWN then client retries flood then more heap pressure. Self-reinforcing.
- Compaction Death Spiral: Write rate exceeds compaction throughput then SSTables accumulate then read amplification increases then latency spikes then more compaction needed then disk I/O saturated.
- Tombstone Storm: Accumulated tombstones (deletes/expired TTLs) force reads to scan massive amounts of dead data then read latency spikes, possible query abortion at 100K tombstones.
- Disk Space Exhaustion: Compaction backlog + snapshots + hints consume space then compaction cannot run (needs temporary space) then writes blocked.
- Hint Overflow: Long node outage then hints accumulate on coordinators then hints expire
(
max_hint_window, default 3h) then data permanently inconsistent unless repaired. - Any time the user reports a Apache Cassandra service behaving outside its expected envelope (elevated errors, latency, saturation, resource exhaustion, or unexpected restarts).
- An on-call engineer is paging on a Netdata alert tied to a Apache Cassandra instance and wants a structured triage path.
Key facts
- This skill wraps the Netdata operator playbook for Apache Cassandra. It does not replace the playbook; it routes a coding agent through MCP queries against the same signals the playbook relies on.
- The playbook decomposes Apache Cassandra health into 8 signal domains: Availability, Throughput, Latency, Errors, Saturation / Internal State, Replication / Consistency. Each domain maps to one rule file in this skill.
- Dominant failure archetypes the playbook calls out: GC Death Spiral; Compaction Death Spiral; Tombstone Storm; Disk Space Exhaustion; Hint Overflow.
- Netdata observes the signals listed in the rule files via its native collectors, plus any OpenTelemetry-shipped metrics that your Apache Cassandra instrumentation adds. Both paths end at the same MCP query surface.
- Netdata's cassandra collector emits 28 context(s) under
cassandra.*. The rule files enumerate which contexts surface which domain; the Verification section below names the load-bearing ones explicitly.
Step-by-step
- Confirm the Apache Cassandra service is up. Query Netdata via MCP with
list_nodesand filter by the host running the target. A missing node means the symptom is at the network or orchestrator layer, not inside the service. - Pull the last 15 minutes of signals for the target. Use
query_metricsagainst the contexts listed in the domain rule files. Runfind_anomalous_metricsin parallel over the same window; anomalies frame which rule file to read first. - Check for GC Death Spiral. Heap pressure then long GC pauses then gossip failures then node marked DOWN then client retries flood then more heap pressure. Self-reinforcing. Inspect the rule file whose signals move first for this mode.
- Check for Compaction Death Spiral. Write rate exceeds compaction throughput then SSTables accumulate then read amplification increases then latency spikes then more compaction needed then disk I/O saturated. Inspect the rule file whose signals move first for this mode.
- Check for Tombstone Storm. Accumulated tombstones (deletes/expired TTLs) force reads to scan massive amounts of dead data then read latency spikes, possible query abortion at 100K tombstones. Inspect the rule file whose signals move first for this mode.
- Check for Disk Space Exhaustion. Compaction backlog + snapshots + hints consume space then compaction cannot run (needs temporary space) then writes blocked. Inspect the rule file whose signals move first for this mode.
- Check for Hint Overflow. Long node outage then hints accumulate on coordinators then hints
expire (
max_hint_window, default 3h) then data permanently inconsistent unless repaired. Inspect the rule file whose signals move first for this mode. - Correlate with host-level signals (
system.cpu.utilization,system.memory.usage,system.disk.io_time). Many service-level failures have a host-resource precursor. - Apply the remediation hinted at in the matching rule file or the operator playbook. Re-run the MCP queries from the Verification section to confirm the signals returned to expected ranges. A fix that does not move the signal back is not a fix.
Handy MCP call templates
# Discover metrics from Apache Cassandra
list_metrics with q="cassandra"
# Pull a specific context over the last window
query_metrics with context="cassandra.dropped_messages_rate", relative_window=-15m
# Rank anomalies for the service or host
find_anomalous_metrics with node=<host> and context_pattern="cassandra.*"
# Correlate a known problem context with others
find_correlated_metrics around the incident window
# Show current alert state
list_raised_alerts scoped to the node
Common mistakes
- Treating Apache Cassandra as a generic HTTP or process health check. Apache Cassandra has specific failure archetypes (see Key facts) that generic checks miss.
- Stopping at the first anomalous metric. Several archetypes produce correlated spikes; use
find_correlated_metricsto widen the search before concluding a root cause. - Quoting percentile latency without the sample count. Low traffic plus a single slow request moves p99 by seconds.
- Reading dashboards for a window shorter than the failure's fingerprint. Slow-brew failures (queue growth, bloat, memory fragmentation) need 30+ minutes of data to see the trend.
- Skipping the host-level correlation. A process-level fix for a noisy-neighbour problem does not hold.
- Assuming alert thresholds are tuned for your workload. Tune against observed Apache Cassandra traffic before escalating an alert configuration issue.
Verification
Run these MCP queries against the Netdata instance that sees the Apache Cassandra service. Every context listed below is a real Netdata chart name; the agent does not need to guess.
1. list_metrics filtered by q="cassandra" (returns every cassandra.* context Netdata sees)
2. query_metrics with contexts=[cassandra.dropped_messages_rate, cassandra.client_requests_timeouts_rate, cassandra.client_requests_failures_rate, cassandra.client_requests_rate, cassandra.client_requests_latency, cassandra.row_cache_hit_rate] and relative_window=-30m
3. find_anomalous_metrics filtered by node=<host> and context_pattern="cassandra.*"
Load-bearing contexts for this service:
cassandra.dropped_messages_rate: Dropped messages rate (messages/s). Dimensions: dropped.cassandra.client_requests_timeouts_rate: Client requests timeouts rate (timeout/s). Dimensions: read, write.cassandra.client_requests_failures_rate: Client requests failures rate (failures/s). Dimensions: read, write.cassandra.client_requests_rate: Client requests rate (requests/s). Dimensions: read, write.cassandra.client_requests_latency: Client requests total latency (seconds). Dimensions: read, write.cassandra.row_cache_hit_rate: Key cache hit rate (events/s). Dimensions: hits, misses.
A clean result means every context is within its expected band and the find_anomalous_metrics list
is empty or contains only already-acknowledged items. If the fix was real, re-running the same
queries 10 minutes after applying it will show a clean result. If it does not, revert and look
deeper.
When the fix does not hold
If signals drift back into the anomalous range within 30 minutes of a remediation, the cause was deeper than the applied change. Typical misdiagnoses for Apache Cassandra:
- Host-resource pressure masquerading as application bug.
- Dependent service (DB, cache, upstream) causing a secondary symptom in the instrumented service.
- Configuration change that was never reloaded (some subsystems only pick up config on full restart).
Escalate by widening the query window: 2-6 hours instead of 15 minutes. Slow-moving causes are invisible at triage window sizes.
References
rules/availability.mdrules/throughput.mdrules/latency.mdrules/errors.mdrules/saturation-internal-state.mdrules/replication-consistency.mdrules/cache-performance.mdrules/security-integrity.md- Netdata operator playbook: the authoritative source material this skill summarizes.
skills/netdata-mcp-integration/for the transport setup.skills/netdata-otel-setup/if additional application signals are needed beyond what Netdata collects natively.
版本历史
-
skills-20261103210927-6c1b454
GitHub ↗
原版更新说明
Automated skills release from commit 6c1b4543cac1d45a80bf5904e4b69ac315117323
-
skills-20260928190452-ff51758
GitHub ↗
原版更新说明
Automated skills release from commit ff51758b06b8249007116184096765d47bdb7505
-
skills-20260924105536-d31110d
GitHub ↗
原版更新说明
Automated skills release from commit d31110d62dc0bd00c22f1d6f6a630d1e702a0049
-
skills-20260923085113-cea285e
GitHub ↗
原版更新说明
Automated skills release from commit cea285ef0e4d6ec47cd2fd9fdbca03813a3363c7
-
skills-20260922193956-97d7333
GitHub ↗
原版更新说明
Automated skills release from commit 97d7333d8200e5ac556c659c8669f3a83ba10866
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 针对 Apache Cassandra 五大典型故障模式提供结构化诊断流程
- 面向运维工程师和 on-call 场景,实用价值高
亮点
- 触发词精准完整,覆盖多种故障模式变体,边界清晰
亮点
- 结构完整,步骤清晰,包含端到端示例和 MCP 调用模板
待提升项
-
引用文件缺失 原报告严重程度:重大
SKILL.md 引用了 8 个 rules/*.md 文件(如 rules/availability.md 等),但未传入 ZIP 包中
改进建议:请补充所有被引用的规则文件,或明确说明这些文件为外部参考无需打包
亮点
- 工具来源明确,参数正确,Verification 提供明确的修复确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。