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-spring-boot-examples.git
The following commit(s) were added to refs/heads/main by this push:
new ea24f89 CAMEL-17587: camel-health - Make Health Check API simpler
ea24f89 is described below
commit ea24f893dbb4872de3a7ea652a59874f1ecba2c8
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Feb 7 11:10:03 2022 +0100
CAMEL-17587: camel-health - Make Health Check API simpler
---
health-checks/readme.adoc | 2 +-
health-checks/src/main/resources/application.properties | 13 -------------
2 files changed, 1 insertion(+), 14 deletions(-)
diff --git a/health-checks/readme.adoc b/health-checks/readme.adoc
index 4d211e2..dd58f94 100644
--- a/health-checks/readme.adoc
+++ b/health-checks/readme.adoc
@@ -2,7 +2,7 @@
This example shows how to work with a simple Apache Camel application using
Spring Boot.
-NOTE: Some of the routes fail intentionally to have health check monitor their
failures
+NOTE: Some routes fail intentionally to have health check monitor their
failures
=== How to run
diff --git a/health-checks/src/main/resources/application.properties
b/health-checks/src/main/resources/application.properties
index c3d29dc..1ccbb76 100644
--- a/health-checks/src/main/resources/application.properties
+++ b/health-checks/src/main/resources/application.properties
@@ -66,21 +66,8 @@ camel.health.registry-enabled = true
### camel.heath.config[netty].check = routes
### camel.heath.config[netty].enabled = false
-# and configure each individually
-camel.health.config[timer].parent = routes
-camel.health.config[timer].interval = 5000
-camel.health.config[netty].parent = routes
-camel.health.config[netty].interval = 20000
-camel.health.config[netty].failure-threshold = 10
-
# find grained routes configuration per route (support wildcards)
# (enabled is default true for discovered health-checks)
### camel.health.config[*].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.config[*].parent = routes
-###camel.health.config[*].interval = 10s
-###camel.health.config[*].failure-threshold = 5