Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why won my distributed Erlang nodes communicate?

0
Posted

Why won my distributed Erlang nodes communicate?

0

For Erlang nodes to be able to communicate, you need • A working tcp network between the nodes. On unix systems you can check this by using telnet, though a working telnet doesn’t guarantee that enough of your network is working, e.g. DNS problems throw a spanner in Erlang’s distribution mechanisms. • The nodes to use the same node naming scheme (you cannot have a system where some nodes use fully qualified names and others use short names). • The nodes must agree to use the same “magic security cookie”. Here’s an example of how to create two nodes on different machines called martell and grolsch and verify that they’re connected. On one machine: ~ >rlogin martell Last login: Sat Feb 5 20:40:52 from super ~ >erl -sname first_node Eshell V4.9.1.1 (abort with ^G) (first_node@martell)1> erlang:set_cookie(first_node, nocookie). true And on the other ~ >rlogin grolsch Last login: Thu Feb 3 10:54:20 from :0 ~ >erl -sname second_node Eshell V4.9.1.1 (abort with ^G) (second_node@grolsch)1> erl

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123