[erlang-questions] Slave node restart not working
Adam Lindberg
adam@REDACTED
Fri Feb 4 14:20:54 CET 2011
I can see that the new beam process for the slave node actually
dissappears, and it and it is not possible to ping it.
I have verified this behavior on Windows as well.
» ps aux | grep beam | wc -l
1
(hest@REDACTED)24> net_adm:ping(apa@REDACTED).
pang
(hest@REDACTED)25> net_adm:ping(apa@REDACTED).
pang
(hest@REDACTED)26> slave:start(yama, apa).
{ok,apa@REDACTED}
(hest@REDACTED)27> net_adm:ping(apa@REDACTED).
pong
» ps aux | grep beam | wc -l
2
(hest@REDACTED)28> rpc:call(apa@REDACTED, init, restart, []).
ok
(hest@REDACTED)29> net_adm:ping(apa@REDACTED).
pang
(hest@REDACTED)30> nodes().
[]
» ps aux | grep beam | wc -l
1
Cheers,
Adam
Andrey Pampukha wrote:
> I've checked, slave doesn't want to work at my machine because of
> absence of ssh-server, but ct_slave works:
> ma@REDACTED)1> ct_slave:start(te).
> {ok,te@REDACTED}
> (ma@REDACTED)2> nodes().
> [te@REDACTED]
> (ma@REDACTED)3> rpc:call(te@REDACTED,init,restart,[]).
> ok
> (ma@REDACTED)4> nodes().
> []
> (ma@REDACTED)5> net_adm:ping(te@REDACTED).
> pong
> (ma@REDACTED)6> nodes().
> [te@REDACTED]
>
>
> 2011/2/4, Andrey Pampukha<andrey.pampukha@REDACTED>:
>> Hi,
>>
>> Looks like nobody reconnects the slave node back to the master after
>> restart.
>> Try to ping it, I believe it should work.
>>
>> Andrey.
>>
>> 2011/2/4, Adam Lindberg<adam@REDACTED>:
>>> Hi!
>>>
>>> I'm running a slave node in a project, and sometimes we want to restart
>>> the slave node. However, it seems that init:restart() shuts down the
>>> node instead of restarting in.
>>>
>>> The documentation for init:restart() says that it restarts the node in
>>> the current emulator, which makes me wonder why it goes down instead of
>>> restarts. The node should have everything it needs to restart based on
>>> the boot flags etc.
>>>
>>>
>>> (hest@REDACTED)5> slave:start(yama, apa).
>>> {ok,apa@REDACTED}
>>> (hest@REDACTED)6> nodes().
>>> [apa@REDACTED]
>>> (hest@REDACTED)7> rpc:call('apa@REDACTED', init, restart, []).
>>> ok
>>> (hest@REDACTED)8> nodes().
>>> []
>>>
>>> There is no crash dump generated as well. Why doesn't the slave node
>>> restart?
>>>
>>> Cheers,
>>> Adam
>>>
>>>
>>> ________________________________________________________________
>>> erlang-questions (at) erlang.org mailing list.
>>> See http://www.erlang.org/faq.html
>>> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>>>
>>>
More information about the erlang-questions
mailing list