Updated Failover Master Server (markdown)

Barry Yu 2019-01-10 10:09:07 +08:00
parent 6e0689511a
commit e3c628f4ce

@ -19,7 +19,7 @@ weed server -master.port=9335 -dir=./3 -volume.port=8082 \
## How it works ## How it works
The master servers are coordinated by Raft protocol, to select a leader. The leader takes over all the work to manage volumes, assign file ids. All other master servers just simply forward requests to the leader. The master servers are coordinated by Raft protocol, to elect a leader. The leader takes over all the work to manage volumes, assign file ids. All other master servers just simply forward requests to the leader.
If the leader dies, another leader will be elected. And all the volume servers will send their heartbeat together with their volumes information to the new leader. The new leader will take the full responsibility. If the leader dies, another leader will be elected. And all the volume servers will send their heartbeat together with their volumes information to the new leader. The new leader will take the full responsibility.