[erlang-questions] HEART

Éric Pailleau eric.pailleau@REDACTED
Mon May 11 22:11:38 CEST 2015

Hi Roberto,

Good question. Heart was probably initially used for embedded systems. 
Monitoring your node is not that much easy,
Because no pid file is created out of the box. It ends by using a wrapper that create a pidfile.
Heart is also needful for hot upgrades when reboot of emulator is necessary.
Mho,  you should set the HEART_command to your starter script in order to create another pidfile on reboot. See heart module documentation. 

Le 11 mai 2015 21:13, Roberto Ostinelli <roberto.ostinelli@REDACTED> a écrit :
> Dear list, 
> I'm a little confused and would like to understand whether the HEART command should be used or not. 
> In non-erlang systems, I would have standard watchdogs that launch an application on OS boot, and then monitor it and relaunch it if necessary. 
> What is the best practice in the erlang world? A script to start an erlang release at boot time, and use the HEART command? Others? 
> The warning in the docs makes me hesitate. 
> Any input welcome. 
> Thanks! 
> r. 
> _______________________________________________ 
> erlang-questions mailing list 
> erlang-questions@REDACTED 
> http://erlang.org/mailman/listinfo/erlang-questions 

More information about the erlang-questions mailing list