Leader Election is one of the new features in Strimzi 0.31.0. This video looks at it in more detail. Explains how it works, when is it useful and shows a demo of Leader Election in action.
Пікірлер: 4
@bossaries623 Жыл бұрын
thank you for this explanation. I was hesitant to upgrade to 0.31 because of the change from statefulsets to StrimziPodSets but this helps alleviate my concern
@Strimzi Жыл бұрын
Great, thanks. The StrimziPodSets were one of the reasons why we added the Leader Election support.
@faresoueslati9016 Жыл бұрын
Thanks for the video! Out of curiosity, why is the new leader not necessarily the existing pod? A pointer to a PR comment or source code would be also useful to know more about it 🙏
@Strimzi Жыл бұрын
@@faresoueslati9016 There is no queueing mechanism for the lock. All the instances are periodically checking it if it is available or not. So there is no guarantee that the instance waiting the longest time will be the next leader. The next leader will the one who will check first after it is available for taking which can be the new pod which just started as well as the pod waiting for it for 2 weeks.