Hello people!
I have some strange use case for consul. I wonder if it can be elegantly use to achieve what we need?
Lets say we have set of services that are placed on set of nodes.
- Each service should be able to elect a leader on start.
- Leader should be persistent till he die - than new election.
- Leaders should be randomly placed on nodes.
- Whole system should tend to be fair balanced. (something like anty-entropy)
So at the any moment of time we should have a leader for each service, and number of leaders on particular node should be near or equal to number of leaders on other hosts.
Thanks a lot for any comments!
P.S. I am trying to figure out a way to get fair active/passive load balance logic.