How to increase replication factor for __consumer_offset

In some cases like due to capacity, we generally need to add some extra brokers in the cluster. When we add a new broker in the cluster then topics that are having fewer replicas like only 1 replica needs to increase replica so the topic can be highly available. Today we will consider a scenario where there is only one broker and consumer offset is having only one replica and now we have added a new broker and want to increase replicas for __consumer_offset topic

First step of this process will be to create json file which will have list of topics that we want to reassign. Create a json file in below format

{ "version": 1,
    "topics": [
       {"topic": "test_topic"},
       {"topic": "__consumer_offsets"}   
] 
}

Leave a Comment