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

Added readiness check to avoid errors during topology changes #29

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

Conversation

edescourtis
Copy link
Contributor

erpc and nodes show up faster than the applications can start in some
cases leading to requests being routed to booting nodes. A workaround is
possible in the RPC call, but it leads to the proliferation of error
handling code, so it would be better to wait for the nodes to be
ready.

def start_node(name) do
:slave.start_link(:localhost, name)
end
def start_nodes(prefix, amount, options \\ [])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Add the hidden option to LocalCluster and delete this code.

erpc and nodes show up faster than the applications can start in some
cases leading to requests being routed to booting nodes. A workaround is
possible in the RPC call, but it leads to the proliferation of error
handling code, so it would be better to wait for the nodes to be
ready.
@eric0fw
Copy link

eric0fw commented May 10, 2022

@bitwalker Let me know if you want me to change something.

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.

None yet

3 participants