kopeio / etcd-manager

operator for etcd: moved to https://github.com/kubernetes-sigs/etcdadm
Apache License 2.0
164 stars 47 forks source link

Eager-broadcast leadership on every leader iteration #391

Closed justinsb closed 3 years ago

justinsb commented 3 years ago

Previously we assumed that if our peers didn't change and we had the leadership, that the peers would continue to acknowledge our leadership. But this assumes that a peer didn't restart or crash. Instead, on every leader iteration, check with all the peers that we are still the leader (using the same GRPC method). For negligible additional traffic, this should enable greater recovery from errors and greater consistency of leader election.

Issue #348

hakman commented 3 years ago

👍