mastilver / nosqwal

NoSQL Database interface
MIT License
1 stars 0 forks source link

create `nosqwal-leader` #10

Open mastilver opened 7 years ago

mastilver commented 7 years ago

The api should be similar to https://github.com/pierreinglebert/redis-leader

mastilver commented 7 years ago

From: http://sysdig.com/blog/monitor-etcd/

Node status can be one of: Follower, Candidate (briefly), Leader If a Follower cannot locate the current Leader, it will become Candidate The voting system will elect a new Leader amongst the Candidates Registry value updates (commits) always go through the Leader Once the Leader has received the ack from the majority of Followers the new value is considered “committed” The cluster will survive as long as most of the nodes remain alive