From bfdc47eca9d322680ccda988e4a1fae57f433e48 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?=
Date: Tue, 16 Feb 2016 16:09:52 +0100
Subject: kernel: Add heart validation callback documentation
---
lib/kernel/doc/src/heart.xml | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
(limited to 'lib/kernel/doc/src')
diff --git a/lib/kernel/doc/src/heart.xml b/lib/kernel/doc/src/heart.xml
index b9fad17ce1..f32b74dc24 100644
--- a/lib/kernel/doc/src/heart.xml
+++ b/lib/kernel/doc/src/heart.xml
@@ -154,6 +154,34 @@
the empty string will be returned.
+
+
+
+ Set a validation callback
+
+ 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 ok.
+
+ An exception within the callback will be treated as a validation failure.
+ The callback will be removed if the system reboots.
+
+
+
+
+ Clear the validation callback
+
+ Removes the validation callback call before heartbeats.
+
+
+
+
+ Get the validation callback
+
+ Get the validation callback. If the callback is cleared, none will be returned.
+
+
+
--
cgit v1.2.3
From 4603e0d2b49e7ab488698a22b7831d3f3f113166 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?=
Date: Mon, 22 Feb 2016 17:45:21 +0100
Subject: kernel: Add heart options documentation
---
lib/kernel/doc/src/heart.xml | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
(limited to 'lib/kernel/doc/src')
diff --git a/lib/kernel/doc/src/heart.xml b/lib/kernel/doc/src/heart.xml
index f32b74dc24..a4569b5fb8 100644
--- a/lib/kernel/doc/src/heart.xml
+++ b/lib/kernel/doc/src/heart.xml
@@ -182,6 +182,34 @@
+
+
+ Set a list of options
+
+ Valid options set_options are:
+
+ scheduler
+ -
+
If enabled, a message 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 heartpeat and terminate the node.
+
+
+
+ Returns with the value ok if the options are valid.
+
+
+
+
+ Get the temporary reboot command
+
+ Returns {ok, Options} where Options is a list of current options enabled for heart.
+ If the callback is cleared, none will be returned.
+
+
+
+
--
cgit v1.2.3
From 0ca09ee90d6384e74d1b18ab0e05f2c05fc03905 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?=
Date: Thu, 25 Feb 2016 15:13:32 +0100
Subject: kernel: Clarify heart option
Change scheduler responsiveness to 'check_schedulers'.
---
lib/kernel/doc/src/heart.xml | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
(limited to 'lib/kernel/doc/src')
diff --git a/lib/kernel/doc/src/heart.xml b/lib/kernel/doc/src/heart.xml
index a4569b5fb8..9da4773f2d 100644
--- a/lib/kernel/doc/src/heart.xml
+++ b/lib/kernel/doc/src/heart.xml
@@ -118,6 +118,13 @@
In the following descriptions, all function fails with reason
badarg if heart is not started.
+
+
+
+
+
+
+
@@ -188,12 +195,12 @@
Valid options set_options are:
- scheduler
+ check_schedulers
-
-
If enabled, a message will be sent to each scheduler to check its
+
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 heartpeat and terminate the node.
+ heart program will not receive its heartbeat and thus eventually terminate the node.
--
cgit v1.2.3