jgroups-raft icon indicating copy to clipboard operation
jgroups-raft copied to clipboard

Follower: merge appending of entries and moving of commit-index

Open belaban opened this issue 3 years ago • 3 comments

When a follower gets an AppendEntriesRequest, it appends the entries to its log (1 write to disk) and then tries moving commit-index (1 write to disk). If we could merge these 2 operations into 1 (e.g. using the same WriteBatch in LevelDBLog), then we could double the performance of an AppendEntriesRequest at the followers.

belaban avatar May 02 '22 07:05 belaban

Makes sense only LevelDBLog, not in FileBasedLog (latter has separate mem-mapped files for log entries and metadata). Also, LevelDBLog might get phased out in the future anyway

belaban avatar Mar 02 '23 15:03 belaban

Alternative: move LevelDBLog to jgroups-extras ("graveyard"), so people can still use it :-)

belaban avatar Mar 02 '23 15:03 belaban

Perhaps tool to convert between FileBasedLog and LevelDBLog...

belaban avatar Mar 02 '23 15:03 belaban