NingLin-P

Results 53 comments of NingLin-P

> @NingLin-P have we done any benchmark? Not yet.

> Hello, excuse me. I would like to ask if there is benchmark in this PR? I think there is no, this PR has been paused for a long time.

Canceling heartbeats.

1. when follower received messages from leader, it reset election_elapsed: ``` MessageType::MsgAppend => { self.election_elapsed = 0; self.leader_id = m.from; self.handle_append_entries(&m); } MessageType::MsgHeartbeat => { self.election_elapsed = 0; self.leader_id =...

Yes, what you guy said is right.

To avoid split prevote, maybe we can record the prevote like the read vote (but not need to persist it) and reject incoming vote request in the same term like...

> > ...record the prevote like the read vote... > > Recording votes won't solve split vote. If pre-campaign works like actual campaign and split vote can happen in actual...

> How can recording vote reduce the probability of split vote? After recording a prevote at future term, a node should not start pre-compaing or prevote for other nodes (at...

> A common situation of split vote in 3 voters situation is that leader is down, and two followers start campaign at the same time. How does the strategy you...