Loading...
Loading...
Diagnose ClickHouse Kafka engine health, consumer status, thread pool capacity, and consumption issues. Use for Kafka lag, consumer errors, and thread starvation.
npx skill4agent add altinity/skills altinity-expert-clickhouse-kafkalast_exception_time >= last_poll_timelast_exception_time >= last_commit_timeexceptionsexceptions.time[-1]exceptions.text[-1]kafka_consumers > mb_pool_sizebackground_message_broker_schedule_pool_sizemax.poll.interval.msJSONExtractJSONExtract(json, 'Tuple(...)') AS parsedtupleElement()rdkafka_stat<statistics_interval_ms>| Finding | Load Module | Reason |
|---|---|---|
| Slow MV inserts | | Insert pipeline analysis |
| High merge memory | | Merge patterns |
| Query-level issues | | Query optimization |
| Schema concerns | | Table design |
| Setting | Scope | Notes |
|---|---|---|
| Server | Thread pool for Kafka/RabbitMQ/NATS consumers (default: 16) |
| Table | Parallel consumers per table (limited by cores) |
| Table | Required for parallel inserts ( |
| Table | |
| librdkafka | Max time between polls before consumer is kicked (default: 300s) |
| librdkafka | Enable rdkafka_stat collection (disabled by default) |