Troubleshoot cassandra

From Kilo-Org/kilo-marketplace · View interactive version

Troubleshoot cassandra is an AI agent skill from the GitHub repository Kilo-Org/kilo-marketplace. 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 (coord

How to use this skill

Skill file

Troubleshoot Apache Cassandra

When to use this skill

then client retries flood then more heap pressure. Self-reinforcing.

then read amplification increases then latency spikes then more

compaction needed then disk I/O saturated.

amounts of dead data then read latency spikes, possible query abortion at

100K tombstones.

cannot run (needs temporary space) then writes blocked.

(max_hint_window, default 3h) then data permanently inconsistent unless

repaired.

(elevated errors, latency, saturation, resource exhaustion, or unexpected restarts).

structured triage path.

Key facts

playbook; it routes a coding agent through MCP queries against the same signals the playbook

relies on.

Latency, Errors, Saturation / Internal State, Replication / Consistency. Each domain maps to one

rule file in this skill.

Tombstone Storm; Disk Space Exhaustion; Hint Overflow.

OpenTelemetry-shipped metrics that your Apache Cassandra instrumentation adds. Both paths end at

the same MCP query surface.

which contexts surface which domain; the Verification section below names the load-bearing ones

explicitly.

Step-by-step

  1. Confirm the Apache Cassandra service is up. Query Netdata via MCP with list_nodes and filter by

the host running the target. A missing node means the symptom is at the network or orchestrator

layer, not inside the service.

  1. Pull the last 15 minutes of signals for the target. Use query_metrics against the contexts

listed in the domain rule files. Run find_anomalous_metrics in parallel over the same window;

anomalies frame which rule file to read first.

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

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

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

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

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

  1. Correlate with host-level signals (system.cpu.utilization, system.memory.usage,

system.disk.io_time). Many service-level failures have a host-resource precursor.

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

failure archetypes (see Key facts) that generic checks miss.

find_correlated_metrics to widen the search before concluding a root cause.

p99 by seconds.

growth, bloat, memory fragmentation) need 30+ minutes of data to see the trend.

hold.

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:

read, write.

read, write.

write.

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:

restart).

Escalate by widening the query window: 2-6 hours instead of 15 minutes. Slow-moving causes are

invisible at triage window sizes.

References

collects natively.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.