This modules contains the interface to the
An Erlang runtime system to be monitored by a heart program
is to be started with command-line flag
% erl -heart ...
If the system is to be rebooted because of missing heartbeats,
or a terminated Erlang runtime system, environment variable
To reboot on Windows,
The environment variable
% erl -heart -env HEART_BEAT_TIMEOUT 30 ...
The value (in seconds) must be in the range 10 < X <= 65535.
Notice that if the system clock is adjusted with
more than
If a crash occurs, an
% erl -heart -env ERL_CRASH_DUMP_SECONDS 10 ...
If a regular core dump is wanted, let
% erl -heart -env HEART_KILL_SIGNAL SIGABRT ...
If heart should not kill the Erlang runtime system, this can be indicated
using the environment variable
% erl -heart -env HEART_NO_KILL 1 ...
Furthermore,
Suppresses the writing of a crash dump file entirely, thus rebooting the runtime system immediately. This is the same as not setting the environment variable.
Setting the environment variable to a negative value does not reboot the runtime system until the crash dump file is completly written.
In the following descriptions, all functions fail with reason
Sets a temporary reboot command. This command is used if
a
Limitations: Command string
Clears the temporary boot command. If the system terminates,
the normal
Gets the temporary reboot command. If the command is cleared, the empty string is returned.
This validation callback will be executed before any
heartbeat is sent to the port program. For the validation to
succeed it needs to return with the value
An exception within the callback will be treated as a validation failure.
The callback will be removed if the system reboots.
Removes the validation callback call before heartbeats.
Get the validation callback. If the callback is cleared,
Valid options
If enabled, a signal will be sent to each scheduler to check its responsiveness. The system check occurs before any heartbeat sent to the port program. If any scheduler is not responsive enough the heart program will not receive its heartbeat and thus eventually terminate the node.
Returns with the value
Returns