should commit index be persistent?

50 views
Skip to first unread message

Skype Xu

unread,
Feb 13, 2015, 12:03:40 AM2/13/15
to raft...@googlegroups.com
Hi,

Follower crashed and restarted, if commit index is not persisent, should the follower replay
all log entries once leader send a commit message ? if there is a large number of log entries,
it will take some time to complete, possible very long.

Regards,

Oren Eini (Ayende Rahien)

unread,
Feb 13, 2015, 1:40:08 AM2/13/15
to Skype Xu, raft...@googlegroups.com
Raft can run in persistent or in memory mode.
Using in memory mode, all data is in memory, obviously. A crashing node will behave pretty much like a brand new node, and it will first need to get a snapshot, then get the commits since that snapshot, etc.
For the most part, though, it is used with persistence. Note that this doesn't solve the problem. If your node was down for a long time, it will still have a lot to catch up on.

Hibernating Rhinos Ltd  

Oren Eini l CEO 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.

Reply all
Reply to author
Forward
0 new messages