From the course: Troubleshooting and Debugging Kafka

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Observing partitions and replication

Observing partitions and replication - Kafka Tutorial

From the course: Troubleshooting and Debugging Kafka

Observing partitions and replication

Now that we are running a multi-broker cluster, we can have our topics be more durable by configuring a replication factor greater than 1. Now, I'm on the topics page here, and I'm going to click on the "Add Topic" button to add a new topic. I'm going to call this topic user_signups. I'll set five as the number of partitions for this topic. Click on "Customize Settings," and I'll use this UI to customize the replication factor for this topic. Now, in the custom availability settings, make sure you click that and set the replication factor to 3, and the minimum number of in-sync replicas is set to 2. So for a producer to have successfully produced a message to this topic, two out of three replicas need to acknowledge that the message has been produced. Now, let's scroll to the very bottom and save and create this topic. I'm not going to change any of the other configuration settings. Now, let's head over and take a look at this topic with multiple replicas. You can see that the…

Contents