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

Cluster discoverability improvement - include addresses of the replicas #161

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

Maelkum
Copy link
Contributor

@Maelkum Maelkum commented Jul 23, 2024

This PR makes a slight change to consensus cluster formation.

Worker nodes can form a cluster in order to achieve consensus about an execution, when instructed to do so by the head node.
However, it might be the case that workers have never seen each other before, and don't know the addresses where they could reach their fellow workers.

Now, head node includes the multiaddresses of the peers chosen to form a consensus in the FormCluster message payload. Workers receiving this message will add these addresses to their address book, if they do not know of the peer already, That way when the consensus communication starts, they'll know how to reach their fellow replicas.

@Maelkum Maelkum self-assigned this Jul 23, 2024
@Maelkum Maelkum requested a review from dmikey July 23, 2024 10:37
@dmikey dmikey merged commit 748c415 into main Aug 9, 2024
5 checks passed
@dmikey dmikey deleted the node-cluster-discoverability branch August 9, 2024 12:50
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.

2 participants