Leader Election Protocolとは何か?
Leader election protocolは、複数の同一インスタンスが、残りが待機する中で1つをleaderとして動作させるために選ぶ手順です。Leaderは更新しなければならないleaseを保持し、更新に失敗した場合は別のインスタンスが引き継ぎます。これにより、同時に実行してはならないタスクに対して、正確に1つのアクティブなworkerが保証されます。
なぜ重要か
多くのcontrollerやschedulerは可用性のために複数のレプリカを実行しますが、決定が衝突しないように1つとして動作しなければなりません。Leader electionは、自動フェイルオーバーを備えたそのシングルトンの振る舞いを提供します。
関連ガイド
What Is a Distributed Lock?A distributed lock coordinates exclusive access to a shared resource across multiple processes or machines so…
What Is a Consensus Quorum?A consensus quorum is the minimum number of nodes that must agree for a distributed system to commit a decisi…
What Is the etcd Store?etcd is a distributed, strongly consistent key-value store that holds the authoritative cluster state for sys…