Review Cluster and Topic Capacity
A 5-step recipe with Apache Kafka. We can help you get access.
Recipe · 5 steps
Review Cluster and Topic Capacity
with Apache Kafka
Audit a topic's partition and replica layout against the cluster's brokers.
- Read the cluster to confirm it exists and to capture the controller reference that anchors the rest of the audit.
- List the brokers in the cluster. The broker count is the hard ceiling on any topic's replication factor and the baseline for judging replica spread.
- Inventory the cluster's topics, giving the audit the full picture of what is deployed before narrowing to one topic.
- Read the target topic's declared partition count and replication factor, which is what the audit compares against the broker list.
- Read the per-partition detail, exposing the leader and replica set for each partition. This is where leader skew and under-replication become visible.
What you'll need to have ready
- clusterId: The Kafka cluster id to audit.
- topicName: The topic to drill into for partition and replica detail.
For your developer
Arazzo workflow apache-kafka:review-topic-capacity, 5 operations: getCluster → listBrokers → listTopics → getTopic → listPartitions. Specs on APIs.io.