Kafka Troubleshooting Playbooks
These playbooks provide focused response sequences for production incidents. They cover Kafka 4.x KRaft clusters and label release-specific behavior.
Use the playbook that matches the observed symptom. Start with read-only evidence collection, contain the impact, apply the smallest safe recovery action, and verify the original workload.
Cluster and Storage
Section titled “Cluster and Storage”| Playbook | Use it when |
|---|---|
| No active controller | KRaft has no leader or metadata operations stall |
| Broker will not start | A broker exits, loops, or never registers |
| Offline partitions | Partitions have no leader |
| Under-replicated partitions | Followers leave the ISR or cannot catch up |
| Disk or log-directory failure | A volume fills, fails, or becomes too slow |
| High broker latency | Produce/fetch latency or request queues rise |
Clients, Security, and Groups
Section titled “Clients, Security, and Groups”| Playbook | Use it when |
|---|---|
| Client cannot connect | Bootstrap, metadata, or advertised endpoints fail |
| Authentication or authorization failure | TLS, SASL, OAuth, or ACL checks fail |
| Producer timeouts | Records expire or producer calls block |
| Consumer lag | A group falls behind |
| Rebalance storm | A group repeatedly revokes and reassigns work |
| Offset out of range | Retention or bad seeks invalidate an offset |
| Transaction failures | Producers are fenced or commits fail |
| Share-group failures | Acquisition, acknowledgement, or DLQ behavior fails |
Frameworks and Remote Storage
Section titled “Frameworks and Remote Storage”| Playbook | Use it when |
|---|---|
| Kafka Connect task failure | A connector or task enters FAILED state |
| Kafka Streams state recovery | Restore loops, state stores, or changelogs fail |
| Tiered-storage failure | Remote copy, fetch, or delete operations fail |
Incident Rules
Section titled “Incident Rules”- Preserve logs, metrics, exceptions, and command output before restarting.
- Never format storage, delete metadata, reset offsets, or run an unclean election as an exploratory step.
- Use
--command-configfor secured clusters and protect the properties file. - Record every temporary configuration change with an owner and rollback condition.
- Verify the user-visible workload, not only the administrative command.
See Diagnosis for read-only command sequences and Log analysis for evidence correlation.