Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

usage of erlang heart

How should heart be used to keep an application alive?

Lets say I have an application X, will it be monitored if I just call something like:

erl -boot X -heart -env HEART_BEAT_TIMEOUT 30 -detached

?

like image 525
Daniel Avatar asked May 18 '11 23:05

Daniel


1 Answers

Yes, this will automatically start a heart process that monitors your node. See the heart documentation.

Update: Yes, Asymptote is correct. You also need a HEART_COMMAND environment variable to instruct heart of what to do when restarting the node.

like image 161
Adam Lindberg Avatar answered Oct 11 '22 03:10

Adam Lindberg