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
commit 76c8f6b07223aa0da69d24a42744b87835d442c3 Author: Claus Ibsen <[email protected]> AuthorDate: Mon Jun 8 12:22:17 2020 +0200 camel-health - update example --- .../src/main/resources/application.properties | 32 ++++++++++++++-------- 1 file changed, 21 insertions(+), 11 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 8c3291b..8667786 100644 --- a/examples/camel-example-main-health/src/main/resources/application.properties +++ b/examples/camel-example-main-health/src/main/resources/application.properties @@ -19,6 +19,10 @@ # here you can configure options on camel main (see MainConfigurationProperties class) camel.main.name = MyHealthyCamel +# extended runtime statistics about bean introspection usage (java reflection) +camel.main.bean-introspection-extended-statistics=true +camel.main.bean-introspection-logging-level=INFO + # enable JMX which allows to also control health check camel.main.jmx-enabled = true @@ -38,29 +42,35 @@ camel.main.route-controller-back-off-max-attempts = 10 # 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 +camel.health.context-enabled = true # routes check is default included but we can turn it on|off -camel.health.routes.enabled = true +camel.health.routes-enabled = true # registry check is default included but we can turn it on|off -camel.health.registry.enabled = true +camel.health.registry-enabled = true # you can turn on individual routes as shown below -# camel.health[routes][timer].enabled = true -# camel.health[routes][netty].enabled = false +### camel.heath.config[timer].parent = routes +### camel.heath.config[timer].enable = true +### camel.heath.config[netty].check = routes +### camel.heath.config[netty].enable = false # and configure each individually -# camel.health[routes][timer].interval = 5s -# camel.health[routes][netty].interval = 20s -# camel.health[routes][netty].failure-threshold = 10 +camel.health.config[timer].parent = routes +camel.health.config[timer].interval = 5s +camel.health.config[netty].parent = routes +camel.health.config[netty].interval = 20s +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[routes][*].enabled = true +### zcamel.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[routes][*].interval = 10s -###camel.health[routes][*].failure-threshold = 5 +###camel.health.config[*].parent = routes +###camel.health.config[*].interval = 10s +###camel.health.config[*].failure-threshold = 5 # properties used in the route myPeriod = 10s
