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
This commit is contained in:
Ryan Baxter
2018-06-12 16:57:34 -04:00
committed by Spencer Gibb
parent a331f7e299
commit eec9173ee0

View File

@@ -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.