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
?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With