Runbook

Kafka Cluster Replication Factor Check

Back to Runbooks

Overview

In a Kafka cluster, replication factor is the number of copies of a topic's partitions across different brokers. The replication factor is set at the time of topic creation and cannot be changed once the topic is created. In case the replication factor is less than the minimum required number, there is a risk of data loss if one or more brokers go down. This incident type involves checking the replication factor of Kafka clusters to ensure that the number of replicas is sufficient, and that data is safe in case of a broker failure.

Parameters

Debug

Check the replication factor of a specific topic

Check the replication factor of all topics in a cluster

Check the number of brokers in a cluster

Check the number of replicas of a topic's partitions

Check the number of in-sync replicas of a topic's partitions

Repair

Increase the replication factor of the topic so that it meets the minimum required number. This can be done using the Kafka command line tools or the Kafka API.

Learn more

Related Runbooks

Check out these related runbooks to help you debug and resolve similar issues.