capabilities.work

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

Audit a topic's partition and replica layout against the cluster's brokers.

  1. Read the cluster to confirm it exists and to capture the controller reference that anchors the rest of the audit.
  2. 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.
  3. Inventory the cluster's topics, giving the audit the full picture of what is deployed before narrowing to one topic.
  4. Read the target topic's declared partition count and replication factor, which is what the audit compares against the broker list.
  5. 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.