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

chore: add a raft library #3795

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

chore: add a raft library #3795

wants to merge 4 commits into from

Conversation

jvmakine
Copy link
Contributor

@jvmakine jvmakine commented Dec 17, 2024

This is a typed version of dragonboat APIs. It also does some simplifications, namely

  • No immutable files in snapshots
  • No support for cancelling snapshot save / restore
  • No active sessions, which can result into duplicate events on timeouts / errors.

Also, it does not support cleanly removing members from the cluster yet.

However, it supports

  • typed events
  • typed queries
  • snapshotting
  • joining to an existing cluster as a new member.

Also, I did not enable gossip protocol that can be used to retain node identity over changing addresses, as stateful sets should have a persistent address in K8s

@jvmakine jvmakine requested a review from alecthomas as a code owner December 17, 2024 04:48
@alecthomas alecthomas mentioned this pull request Dec 17, 2024
@jvmakine jvmakine force-pushed the juho/rafty-rafty-raft branch 4 times, most recently from cd74090 to 836157e Compare December 18, 2024 04:35
jvmakine and others added 3 commits December 18, 2024 16:33
This is a typed version of dragonboat APIs. It also does some simplifications, namely
- No immutable files in snapshots
- No support for cancelling snapshot save / restore
- No active sessions, which can result into duplicate events on timeouts / errors.

Also, it does not support adding / removing members from the cluster yet.

However, it supports
- typed events
- typed queries
- snapshotting
@jvmakine jvmakine force-pushed the juho/rafty-rafty-raft branch from 836157e to f4d7950 Compare December 18, 2024 05:34
@jvmakine jvmakine force-pushed the juho/rafty-rafty-raft branch from ef9827a to ccf9164 Compare December 18, 2024 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant