Three Implementations of Specifying a Replica as a Leader in Kafka

Three implementations of specifying a replica as a leader in Kafka Introduction:

Three implementations of specifying a replica as a leader in Kafka

Three implementations of specifying a replica as a leader in Kafka.Before, I wrote an article called How Kafka Modifies the Partition Leader
It is because in our actual operation and maintenance process , we need to specify a replica as an ISR, but the leader election strategy in Kafka does not support this function, so we need to implement it ourselves.
For leader election strategy, you can read this article
Leader election process and 4 election strategies
But we left a small tail in the previous article - optimization and improvement .
Let's briefly review the previous two solutions

Option 1 : Redistribution of partition copies (low-cost solution)


about partition copy redistribution before , here I will briefly talk about it;
Generally, there are three main processes for partition copy redistribution
1.Generate recommended migration Json file
2.Execute the migration Json file
3.Verify that the migration process is complete
Here we mainly look at the second step, to see what the migration file generally looks like


Related Articles

Explore More Special Offers

  1. Short Message Service(SMS) & Mail Service

    50,000 email package starts as low as USD 1.99, 120 short messages start at only USD 1.00