Healthy Kafka Cluster — Zero Under Replicated Partition

Healthy Kafka Cluster

Get the under-replicated-partitions

Output

There are three topics that have the issue with replication factor i.e, cluster is not healthy. When the above query gives no output then the cluster is healthy. Reassignment of the partitions is required to make it healthy.

If you have topics that have replication set to one? If the cluster size is higher, then reassignment needs to be considered to maintain the high availability of the topic for consumers, when a topic containing broker is restarting, then the topic goes offline.

To know in detail about individual topics run the describe topic command.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store