I have a cluster of about 20 nginx instances, each on a single server.
I need these nginx to elect a leader to do management work, including update configuration of each server, update membership of the cluster and moving data between them.
Two members doing configuration updating job concurrently is not allowed. It leads to data inconsistency.
Is there some paxos/raft like module in lua to coordinate such job? or is there a leader election module for resty?