[erlang-questions] beginner: Is there an alternative to net_adm:ping/1 before global:sync/0
Tue May 8 07:27:08 CEST 2012
Thanks for all the answers.
My interest in replacing net_adm:ping/1 stems from the comment
% Connect to resource manager node
that accompanies it.
If replaced by a connect_node/1 function call the comment can be
Also, perhaps somebody would have told me that while using global there
is a better way. It is easy to keep doing the same things that worked
last millennium, never switching to newer alternatives.
On Mon, 2012-05-07 at 22:56 +0200, Tim Watson wrote:
> On 7 May 2012 20:04, Richard Carlsson <carlsson.richard@REDACTED> wrote:
> > On 2012-05-07 16:49, Bengt Kleberg wrote:
> >> Greetings,
> >> Before I do a global:sync/0 I have a net_adm:ping/1 to the node that has
> >> the global process. Are there any alternatives to net_adm:ping/1?
> > How about net_kernel:connect_node/1?
> What's wrong with net_adm:ping/1 just out of interest? Are you trying
> to avoid the long delay before it times out if epmd is not running on
> that node? If so you could try to gen_tcp connect to epmd on the right
> IP+port to ensure that it's running before you attempt to you
More information about the erlang-questions