4 ms·
I've had a surprisingly hard time finding a bare-bones Raft implementation in Java purely for leader election. The same hunt also surprised me that there is no
by bberrry 4y ago
I've had a surprisingly hard time finding a bare-bones Raft implementation in Java purely for leader election.
The same hunt also surprised me that there is no common way to do leader election among pods in Kubernetes.
- dharmab 4y agoHow long ago was this? There is now a native Lease resource which allows you to piggyback off the etcd consensus. https://kubernetes.io/docs/reference/kubernetes-api/cluster-resources/lease-v1/ https://kubernetes.io/docs/reference/kubernetes-api/cluster-...
- bberrry 4y agoAwesome, I failed to find that. Thanks!
- vultour 4y agoOperator Framework (and I assume the upstream k8s go library) provide leader election.