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

How to send data from follower to cluster leader #255

Open
faithware opened this issue Sep 6, 2021 · 3 comments
Open

How to send data from follower to cluster leader #255

faithware opened this issue Sep 6, 2021 · 3 comments

Comments

@faithware
Copy link

Hi, Is there any way to send data from a follow to a cluster manager?
Does this has to be implemented separately of the raft server?

Thank you

@greensky00
Copy link
Contributor

Hi @faithware

There is no protocol to send a custom message from follower to leader. The only message that followers send is a vote (pre-vote) request. If you want to do it, that needs to be implemented outside Raft.

@faithware
Copy link
Author

Hi @faithware

There is no protocol to send a custom message from follower to leader. The only message that followers send is a vote (pre-vote) request. If you want to do it, that needs to be implemented outside Raft.

Thanks @greensky00 . All is clear

@marcusolini
Copy link

This may not be within the design intent of nuraft, when forwarding is enabled (nuraft::raft_params::auto_forwarding_ = true), a follower is able to send a message to all cluster members (nuraft::append_entries).

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

No branches or pull requests

3 participants