question about the issue that leader becomes follower

25 views
Skip to first unread message

lemon wonder

unread,
Dec 28, 2016, 1:53:03 AM12/28/16
to raft-dev
There are 5 five servers A, B, C, D, E, A is the leader, B,C,D,E is the follower, but the E has a little network problems, it ofen becomes timeout and turns into a candidate, and after a little while, the network problems disappears, so it can connect to other servers. When this happens, E's term is bigger than A, Will A become follower? note that E will timeout ofen, so it will have a bad influence on system's avalibility. 

Oren Eini (Ayende Rahien)

unread,
Dec 28, 2016, 1:56:44 AM12/28/16
to raft...@googlegroups.com
See the discussions on pre vote in this list. It handles this scenario

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Wed, Dec 28, 2016 at 8:53 AM, lemon wonder <lemo...@gmail.com> wrote:
There are 5 five servers A, B, C, D, E, A is the leader, B,C,D,E is the follower, but the E has a little network problems, it ofen becomes timeout and turns into a candidate, and after a little while, the network problems disappears, so it can connect to other servers. When this happens, E's term is bigger than A, Will A become follower? note that E will timeout ofen, so it will have a bad influence on system's avalibility. 

--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lemon wonder

unread,
Dec 28, 2016, 11:36:44 AM12/28/16
to raft-dev
sorry, I have read pre vote, but I think they don't say clearly. They said the situation that the bad node can't connect to the leader, in my situation, the bad node will connect to leader and make leader become follower because it's term is high. Therefore there is no leader. I still have some confusion that will the leader become follower or there is other ways to handle this?

在 2016年12月28日星期三 UTC+8下午2:56:44,Ayende Rahien写道:
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Dec 28, 2016, 2:27:39 PM12/28/16
to raft...@googlegroups.com
When you are doing pre vote, the bad node will try talking to other ndoes as well to see if they can talk to the leader.
If enough answer that they do, it will assume it is its fault and wait another cycle, then do another pre vote.
In other words, it won't increment its term
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+unsubscribe@googlegroups.com.

lemon9010

unread,
Dec 28, 2016, 9:15:36 PM12/28/16
to raft-dev
It's really great, thank you.




< Oren Eini (Ayende Rahien)> 2016-12-29 03:27:18 wrote:
When you are doing pre vote, the bad node will try talking to other ndoes as well to see if they can talk to the leader.
If enough answer that they do, it will assume it is its fault and wait another cycle, then do another pre vote.
In other words, it won't increment its term

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Wed, Dec 28, 2016 at 6:36 PM, lemon wonder <lemo...@gmail.com> wrote:
sorry, I have read pre vote, but I think they don't say clearly. They said the situation that the bad node can't connect to the leader, in my situation, the bad node will connect to leader and make leader become follower because it's term is high. Therefore there is no leader. I still have some confusion that will the leader become follower or there is other ways to handle this?

在 2016年12月28日星期三 UTC+8下午2:56:44,Ayende Rahien写道:
See the discussions on pre vote in this list. It handles this scenario
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "raft-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/raft-dev/R_dGRrDQ0e8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to raft-dev+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages