Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 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.
The leader has a timeout so it knows if it didn't get positive responses from followers within timeout, it will step down.Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
On Tue, Jan 9, 2018 at 3:16 PM, Karl Nilsson <kjni...@gmail.com> wrote:
Not sure I follow why the leader would time out. Do you set a timer on the leader itself? Normally only followers and candidates set election timers. Or do you mean one of the other followers is timing out because the leader is blocking on an an rpc call to some other follower?
On Tue, 9 Jan 2018 at 12:49 Oren Eini (Ayende Rahien) <aye...@ayende.com> wrote:
I have a case where the leader is sending entries to followers.The followers write the entries to stable storage and answer to the leader.A follower may experience slow I/O, which lead the leader to timeout after 300 ms and consider itself no longer the leader if enough followers hit this condition at the same time.We handle this by having the follower let the leader know that it got the entries and that this is in progress.This way, during this particular period (writing entries to disk), we defer the timeout on both the follower and leader.Given the reason (slow I/O), this avoid elections that would just cause us to end up in the same place, but I wanted to know if this violates any of the safety features.Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
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+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+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+u...@googlegroups.com.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
What made you add this behaviour? if a leader isn't able to send rpcs to ensure it's leadership one of the followers will time-out anyway and start an election. I don't see why a leader would voluntarily step down without having seen a higher term. That said I don't see how it would affect safety so probably ok.
On Tue, 9 Jan 2018 at 13:45 Oren Eini (Ayende Rahien) <aye...@ayende.com> wrote:
The leader has a timeout so it knows if it didn't get positive responses from followers within timeout, it will step down.Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
On Tue, Jan 9, 2018 at 3:16 PM, Karl Nilsson <kjni...@gmail.com> wrote:
Not sure I follow why the leader would time out. Do you set a timer on the leader itself? Normally only followers and candidates set election timers. Or do you mean one of the other followers is timing out because the leader is blocking on an an rpc call to some other follower?
On Tue, 9 Jan 2018 at 12:49 Oren Eini (Ayende Rahien) <aye...@ayende.com> wrote:
I have a case where the leader is sending entries to followers.The followers write the entries to stable storage and answer to the leader.A follower may experience slow I/O, which lead the leader to timeout after 300 ms and consider itself no longer the leader if enough followers hit this condition at the same time.We handle this by having the follower let the leader know that it got the entries and that this is in progress.This way, during this particular period (writing entries to disk), we defer the timeout on both the follower and leader.Given the reason (slow I/O), this avoid elections that would just cause us to end up in the same place, but I wanted to know if this violates any of the safety features.Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
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 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 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 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.
--
This is a pretty common behavior, and the rationale is so a partitioned leader doesn’t continue accepting changes from a client that’s connected to it. If the leader is partitioned, even if another node times out and starts a new election that doesn’t mean the leader will learn about it. Instead, the old leader could continue to accept writes from a client after a new leader has been elected, whereas stepping down can force the client to search for a new leader. Pretty sure this is mentioned in Diego’s dissertation as well.
--
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 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 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 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.
--
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.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
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.
--
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.