sofastack / sofa-jraft

A production-grade java implementation of RAFT consensus algorithm.
https://www.sofastack.tech/projects/sofa-jraft/
Apache License 2.0
3.53k stars 1.12k forks source link

Does Raft have a mechanism for regularly cleaning up large logs? #1031

Closed stone-98 closed 9 months ago

stone-98 commented 9 months ago

Your question

Does Raft have a mechanism for regularly cleaning up large logs?

Your scenes

Describe your use scenes (why need this feature)

Your advice

Describe the advice or solution you'd like

Environment

killme2008 commented 9 months ago

Please enabling the snapshot, then the jraft will truncate the old logs after do a snapshot.

killme2008 commented 9 months ago

You can find more info at https://www.sofastack.tech/en/projects/sofa-jraft/jraft-user-guide/

section 2.6 Snapshot service.

stone-98 commented 8 months ago

okk,I understand.