I've been reading the paper "In Search of an Understandable Consensus Algorithm". I'm confused with how "term" works.
I have two thoughts.
A term begins with an election, and ends with the next election. The next election may happen due to the crash of the current leader. As long as the current leader works perfectly, the term could be lasting for a very long time.
A term's end is determined when it begins. For example, after a server wins the election, the term begins and plans to end in 30 minutes. Then after 30 minutes, the leader stops sending heartbeats to cause another election.
So which one is correct? I feel like the first thought makes more sense and it provides better performance.