File 0012-Doc-docker-Clarify-limitations-of-monitor_cmd-in-par.patch of Package resource-agents.11561
From fbdfbcf63738a9f034c98c8a947608c78ac4e668 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se>
Date: Wed, 2 Nov 2016 11:30:24 +0100
Subject: [PATCH 12/12] Doc: docker: Clarify limitations of monitor_cmd in
parameter description
---
heartbeat/docker | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/heartbeat/docker b/heartbeat/docker
index 8e2e779..876d616 100755
--- a/heartbeat/docker
+++ b/heartbeat/docker
@@ -115,6 +115,13 @@ container has failed and should be recovered.
If 'docker exec' is supported, it is used to execute the command. If not,
nsenter is used.
+
+Note: Using this method for monitoring processes inside a container
+is not recommended, as containerd tries to track processes running
+inside the container and does not deal well with many short-lived
+processes being spawned. Ensure that your container monitors its
+own processes and terminates on fatal error rather than invoking
+a command from the outside.
</longdesc>
<shortdesc lang="en">monitor command</shortdesc>
<content type="string"/>
--
2.10.1