Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Non blocking health check support #376

Open
ziarek opened this issue Mar 9, 2019 · 2 comments
Open

Non blocking health check support #376

ziarek opened this issue Mar 9, 2019 · 2 comments

Comments

@ziarek
Copy link

ziarek commented Mar 9, 2019

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

http://127.0.0.1:8500/v1/health/service/myservice?cached

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

@ziarek ziarek changed the title Cached API support Cached health checks support Mar 9, 2019
@ziarek ziarek changed the title Cached health checks support Non blocking health check support Apr 3, 2019
@rickfast
Copy link
Owner

rickfast commented Apr 9, 2019

that's a newer feature in Consul that hasn't been implemented. PRs welcome

@rutuls
Copy link

rutuls commented Mar 5, 2021

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 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants