From e5e2fd334b9fec2bedab9ee6987b96ca2aec1f87 Mon Sep 17 00:00:00 2001 From: Frank Hunleth Date: Fri, 16 Mar 2018 10:11:09 -0400 Subject: kernel: Update note about heart rebooting on NTP updates The timestamp code in heart uses monotonic time so it is immune to NTP changes. --- lib/kernel/doc/src/heart.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/kernel/doc/src/heart.xml b/lib/kernel/doc/src/heart.xml index 5b5b71e521..46c7ce60b6 100644 --- a/lib/kernel/doc/src/heart.xml +++ b/lib/kernel/doc/src/heart.xml @@ -59,8 +59,9 @@
 % 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 HEART_BEAT_TIMEOUT seconds, heart +

When running on OSs lacking support for monotonic time, + heart is susceptible to system clock adjustments of more than + HEART_BEAT_TIMEOUT seconds. When this happens, heart times out and tries to reboot the system. This can occur, for example, if the system clock is adjusted automatically by use of the Network Time Protocol (NTP).

-- cgit v1.2.3