You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/11/04 15:45:23 UTC
[camel] 02/02: CAMEL-17618: camel-health - Route health check with
consumer should be DOWN until first poll executed
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 3d3e1f00086579d5c422008ef872bfaf39a3cee3
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Nov 4 16:44:42 2021 +0100
CAMEL-17618: camel-health - Route health check with consumer should be DOWN until first poll executed
---
docs/user-manual/modules/ROOT/pages/health-check.adoc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/docs/user-manual/modules/ROOT/pages/health-check.adoc b/docs/user-manual/modules/ROOT/pages/health-check.adoc
index 4b73510..948d0a6 100644
--- a/docs/user-manual/modules/ROOT/pages/health-check.adoc
+++ b/docs/user-manual/modules/ROOT/pages/health-check.adoc
@@ -19,7 +19,11 @@ Camel provides the following health checks out of the box:
such as troublesome routes that may not start up the first time, and are retried to be started in the background with backoff delays.
- consumer (scheduled polling consumer) - A `ScheduledPollConsumerHealthCheck` which automatic integrates with the *routes* health check
which enables fine-grained checks for the route input. This means if the consumer is failing to poll new messages
- then the health check can detect this and report as un-healthy.
+ then the health check can detect this and report as un-healthy. Note that the consumer will be DOWN during its initialization and until at least
+ one poll run has been executed, to know whether that poll was a success or not. And if the poll was a success
+ then the consumer is UP. This is on purpose to avoid having the health check to be initially UP
+ and then after first poll run then DOWN again because the consumer cannot poll from external system;
+ which causes the health check to be _flaky_.
- registry - A `HealthCheckRegistry` which discovers all the available custom `HealthCheck` instances in the `Registry`.
== IDs