Use Erlang heart

How to use your heart to keep the application alive?

Suppose I have an application X, if I just call something similar, it will be monitored:

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

?

Yes, this will automatically start the heart process of the monitoring node. See the heart documentation.

Update: Yes, the asymptote is correct. You also need a HEART_COMMAND environment variable to indicate what to do when restarting the node.

How to use your heart to keep the application alive?

Suppose I have an application X, if I just call something similar, it will be monitored:

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

?

Yes, this will automatically start the heart process of the monitoring node. See the heart documentation.

Update: Yes , The asymptote is correct. You also need a HEART_COMMAND environment variable to indicate what to do when the node is restarted.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2585 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.