-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: only purge logs that are in snapshot
Let `snapshot+logs` be a complete state of a raft node. The Assumption before is `state_machine+logs` is a complete state of a raft node. This requires state machine to persist the state every time applying a log, which would be an innecessary overhead. - Change: remove ENV config entries. Do not let a lib be affected by environment variables. - Change: remove `Config.keep_unsnapshoted_log`: now by default, logs not included in snapshot won't be deleted. Rename `Config.max_applied_log_to_keep` to `max_in_snapshot_log_to_keep`.
- Loading branch information
1 parent
15efb3a
commit d0d04b2
Showing
21 changed files
with
173 additions
and
352 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
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
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.