Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Upon each partition assignment calculation, the full partition assignments are preserved for each consumer (as user data). This is specially helpful when a consumer group leader, who is in charge of performing the partition assignment, dies and the leadership has to be given to some other group member; which, because of the mentioned preserved assignment, . In such circumstances, the new leader has access to what the most recent partition assignment was for the consumer groupand can easily take over the rebalance that is triggered when the former leader disappears, and also future rebalances.

 

Example 1

Suppose there are three consumers C0, C1, C2, four topics t0, t1, t2, t3, and each topic has 2 partitions, resulting in partitions t0p0, t0p1, t1p0, t1p1, t2p0, t2p1, t3p0, t3p1. Each consumer is subscribed to all three topics.

...