简体   繁体   中英

Raft ,why the newer leader's term is bigger than older one

how raft follower rejoin after network disconnected?
Just the same as it.
However, will the log in machine 0 replaced by machine 1?
The committed log after machine 0 left will be nothing?
Machine 1 has a greater term, and it will be the leader.
There must be something to make new leader's term greater than ever before.
Tell me please.

Maybe "RPC time" << "time out", so the older leader' term must smaller than the newer one.
And there is one thing called "Raft prevote".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM