Warning: these are design notes from initial stages of LogCabin and are are probably not relevant any longer.

The Raft log cannot grow without bound. This document discusses the design of various solutions to this problem: compaction.pdf 

Excuse me for linking to a PDF, but I'd rather write it in LaTeX than wiki. Let me know if you want to collaborate on the git repo. Or for small stuff, leave ideas, comments, questions on this page.

Some additional notes from the implementation: