Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Storage trait #15

Open
andreev-io opened this issue Aug 21, 2021 · 0 comments
Open

Create a Storage trait #15

andreev-io opened this issue Aug 21, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@andreev-io
Copy link
Owner

andreev-io commented Aug 21, 2021

What happens when a new replica is added to the cluster? In the current design, other replicas won't learn about it unless they are restarted with the new peer_ids. But upon restart, the replicas and their state machines will lose their state unless the user builds some persistence themselves.

To make this simpler for the user, we should add functionality for the replica to preserve some permanent state. This should exposed to the Little Raft user via a trait that they can implement as they wish. The Raft paper has a lot of good info on what state needs to be preserved and how, so a good first step would be implementing that, and then adding functionality to snapshot the state of the state machine.

@andreev-io andreev-io added the enhancement New feature or request label Aug 21, 2021
@andreev-io andreev-io added this to the Production grade milestone Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant