From eec9173ee01dac82005dbd8b0c573a747b1ef340 Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Tue, 12 Jun 2018 16:57:34 -0400 Subject: [PATCH] document how to disable catalog service watch and health check (#435) * document how to disable catalog service watch and health check. Fixes #375 * Fix typo --- docs/src/main/asciidoc/spring-cloud-consul.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/spring-cloud-consul.adoc b/docs/src/main/asciidoc/spring-cloud-consul.adoc index a176351c..ca2bf052 100644 --- a/docs/src/main/asciidoc/spring-cloud-consul.adoc +++ b/docs/src/main/asciidoc/spring-cloud-consul.adoc @@ -90,6 +90,7 @@ spring: healthCheckInterval: 15s ---- +You can disable the health check by setting `management.health.consul.enabled=false`. ==== Metadata and Consul tags @@ -176,7 +177,7 @@ The Consul Catalog Watch takes advantage of the ability of consul to https://www To change the frequency of when the Config Watch is called change `spring.cloud.consul.config.discovery.catalog-services-watch-delay`. The default value is 1000, which is in milliseconds. The delay is the amount of time after the end of the previous invocation and the start of the next. -To disable the Catalog Watch set `spring.cloud.consul.discovery.catalog-services-watch.enabled=false`. +To disable the Catalog Watch set `spring.cloud.consul.discovery.catalogServicesWatch.enabled=false`. The watch uses a Spring `TaskScheduler` to schedule the call to consul. By default it is a `ThreadPoolTaskScheduler` with a `poolSize` of 1. To change the `TaskScheduler`, create a bean of type `TaskScheduler` named with the `ConsulDiscoveryClientConfiguration.CATALOG_WATCH_TASK_SCHEDULER_NAME` constant.