This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-examples.git


The following commit(s) were added to refs/heads/master by this push:
     new eaa8472  Polished
eaa8472 is described below

commit eaa84726feb5b9b1fed389b11b7bf41b600a59b0
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Sun May 31 07:40:37 2020 +0200

    Polished
---
 examples/camel-example-main-health/readme.adoc                | 11 +++++++++++
 .../src/main/resources/application.properties                 |  1 +
 2 files changed, 12 insertions(+)

diff --git a/examples/camel-example-main-health/readme.adoc 
b/examples/camel-example-main-health/readme.adoc
index 575ecd5..eb107a7 100644
--- a/examples/camel-example-main-health/readme.adoc
+++ b/examples/camel-example-main-health/readme.adoc
@@ -4,6 +4,17 @@ This example shows how to use Camel health-check in standalone 
mode.
 The example shows how you can build custom health-checks and have
 them automatic discovered by Camel and used as parts of its health-check 
system.
 
+The example has two routes, a timer that calls a bean that flips a boolean that
+causes the custom health check to be in either UP or DOWN state.
+
+The 2nd route is on purpose made to fail on startup by configuring netty to an 
unknown host.
+Camel supervising route controller will attempt to restart the route up till 
10 times before exhausting.
+
+The routes health check will therefore report this route as DOWN until its 
exhausted
+where the states are changed to UNKNOWN.
+
+The details can be seen at runtime via JMX.
+
 === How to run
 
 You can run this example using
diff --git 
a/examples/camel-example-main-health/src/main/resources/application.properties 
b/examples/camel-example-main-health/src/main/resources/application.properties
index efff99a..61b0a8c 100644
--- 
a/examples/camel-example-main-health/src/main/resources/application.properties
+++ 
b/examples/camel-example-main-health/src/main/resources/application.properties
@@ -29,6 +29,7 @@ camel.main.route-controller-back-off-max-attempts = 10
 
 # enable health check (is automatic enabled if discovered on classpath)
 camel.main.health-check-enabled = true
+# turn on routes health check as well
 camel.main.health-check-routes-enabled = true
 
 # properties used in the route

Reply via email to