spring-cloud / spring-cloud-consul

Spring Cloud Consul
http://cloud.spring.io/spring-cloud-consul/
Apache License 2.0
813 stars 541 forks source link

Is there any way to configure delay of service registration? [Enhancement] #414

Closed rvit34 closed 5 years ago

rvit34 commented 6 years ago

I've just faced with a problem when I need to set some delay before service is registered at Consul or tell consul to make retries if first health check is failed. Unfortunately I've not found any similar option at ConsulDiscoveryProperties.

spencergibb commented 5 years ago

Not automatically. You can set spring.cloud.consul.discovery.register=false and then use ServiceRegistry to do it manually.

spring-projects-issues commented 5 years ago

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

spring-projects-issues commented 5 years ago

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.