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

raft: replicate commands on state machine #152

Open
Abby3017 opened this issue May 22, 2020 · 1 comment
Open

raft: replicate commands on state machine #152

Abby3017 opened this issue May 22, 2020 · 1 comment
Labels
component/raft Regarding the raft package and sub-packages feature New feature or enhancement help wanted Extra attention is needed
Milestone

Comments

@Abby3017
Copy link
Collaborator

Create a function that will run commands sent by leader on all follower nodes after they get committed msg from the leader.

If the leader commitIndex is greater than Node commitIndex run all the logs on the follower state machine and update node lastApplied

Additional context
Add any other context or screenshots about the feature request here.
To read more about functionality and logic according to raft , go through design doc in this project.

@Abby3017 Abby3017 added needs triage This needs to be investigated or validated component/raft Regarding the raft package and sub-packages feature New feature or enhancement help wanted Extra attention is needed and removed needs triage This needs to be investigated or validated labels May 22, 2020
@tsatke tsatke changed the title Replicate Commands on State Machine raft: replicate commands on state machine May 22, 2020
@tsatke tsatke added this to the v0.0.1 milestone May 22, 2020
@tsatke
Copy link
Contributor

tsatke commented May 22, 2020

@SUMUKHA-PK the hook is there in the server, @Abby3017 please figure out (with @SUMUKHA-PK 's help) how to refactor this to use the hook.

SUMUKHA-PK added a commit that referenced this issue Jun 24, 2020
SUMUKHA-PK added a commit that referenced this issue Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/raft Regarding the raft package and sub-packages feature New feature or enhancement help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants