Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMPROVED] Performance after Raft log snapshot
When Raft deletes a lot of entries in the raft log (backed by BoltDB), the performance of subsequent writes would suffer. Added some logic to possibly recreate new log with remaining entries if that number is within some arbitrary limits. Added logging to report compaction duration, and if that takes more than 2 seconds, warn the user that the TrailingLogs value should probably be lowered. Resolves #520
- Loading branch information
Showing
10 changed files
with
725 additions
and
692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.