Non blocking health check support
ziarek opened this issue · 2 comments
Hi guys,
While performing a service health check the request below is sent to Consul agent.
http://127.0.0.1:8500/v1/health/service/myservice?index=33500766&wait=10s&passing=true
I'd like to use cached query and perform below request
Is the ?cached parameter supported by this library?
The API allows to set a header to determine max cache age (max-age=) - is that also supported?
Cheers
Darek
that's a newer feature in Consul that hasn't been implemented. PRs welcome
I need to implement the scenario in service1 where I want to know health of service2 and if it is up/running then will take action accordingly. I want to know the health of a service on a separate thread or basically in a non-blocking way. How do I implement it using catalog watch ? Is there any other way to implement as well ?