ElasticSearch also use bully algorithm, but update it to solve split-brain. i am looking for something just like that. Did you have any idea on this?