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 880910a camel-health polished example
880910a is described below
commit 880910a8a5919e5dbc43cdff5baec66b707f8acd
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jun 3 08:14:47 2020 +0200
camel-health polished example
---
.../src/main/resources/application.properties | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
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 cfbbd6a..8c3291b 100644
---
a/examples/camel-example-main-health/src/main/resources/application.properties
+++
b/examples/camel-example-main-health/src/main/resources/application.properties
@@ -27,18 +27,22 @@ camel.main.route-controller-supervise-enabled = true
# attempt up till 10 times to start a route (and exhaust if still failing)
# when a route is exhausted then its taken out as being supervised and
# will not take part of health-check either (UNKNOWN state)
-# camel.main.route-controller-back-off-max-attempts = 10
+camel.main.route-controller-back-off-max-attempts = 10
+# when starting a route (and restarts) fails all attempts
+# then we can control whether the route should be influence the health-check
+# and report the route as either UNKNOWN or DOWN. Setting this option to true
+# will report it as DOWN otherwise its UNKNOWN
+###camel.main.route-controller-unhealthy-on-exhausted = true
# enable health check (is automatic enabled if discovered on classpath)
# global flag to enable/disable
camel.health.enabled = true
# context check is default included but we can turn it on|off
camel.health.context.enabled = true
-# turn on routes check too
+# routes check is default included but we can turn it on|off
camel.health.routes.enabled = true
-
-# registry is always enabled (but can be turned off)
-#camel.health.registry.enabled = true
+# registry check is default included but we can turn it on|off
+camel.health.registry.enabled = true
# you can turn on individual routes as shown below
# camel.health[routes][timer].enabled = true
@@ -50,12 +54,13 @@ camel.health.routes.enabled = true
# camel.health[routes][netty].failure-threshold = 10
# find grained routes configuration per route (support wildcards)
+# (enabled is default true for discovered health-checks)
camel.health[routes][*].enabled = true
# allow 5 failures with 10s apart as slack to handle routes being flaky
# however if after 5 failures then the state will be regarded as DOWN onwards
# (the route can recover and the state will then be UP)
-camel.health[routes][*].interval = 10s
-camel.health[routes][*].failure-threshold = 5
+###camel.health[routes][*].interval = 10s
+###camel.health[routes][*].failure-threshold = 5
# properties used in the route
myPeriod = 10s