This modules contains the interface to the
An Erlang runtime system to be monitored by a heart program,
should be started with the command line flag
% erl -heart ...
If the system should be rebooted because of missing heart-beats,
or a terminated Erlang runtime system, the environment variable
To reboot on the WINDOWS platform
The hardware watchdog will not be started under Solaris if
the environment variable
The
% erl -heart -env HEART_BEAT_TIMEOUT 30 ...
The value (in seconds) must be in the range 10 < X <= 65535.
It should be noted 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 heart know by setting the kill signal to abort
using the environment variable
% erl -heart -env HEART_KILL_SIGNAL SIGABRT ...
Furthermore,
Suppresses the writing 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 will not reboot the runtime system until the crash dump file has been completly written.
Heart will wait for
In the following descriptions, all function fails with reason
Sets a temporary reboot command. This command is used if
a
Limitations: The
Clears the temporary boot command. If the system terminates,
the normal
Get the temporary reboot command. If the command is cleared, the empty string will be returned.
This validation callback will be executed before any heartbeat 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