spring-cloud-zookeeper icon indicating copy to clipboard operation
spring-cloud-zookeeper copied to clipboard

Health check using spring-boot actuator health endpoint

Open MorrisZ opened this issue 5 years ago • 6 comments

Problem I have a customized HealthIndicator that simply marks the service as 'DOWN'. But when I checked the znode data, it showed that 'instance_status' was 'UP'.

When using spring-cloud-gateway along with zookeeper registry, I expect that it would NOT forward requests to a service being 'DOWN'. But for now it seems impossible.

MorrisZ avatar Sep 09 '20 09:09 MorrisZ

I solved that on my own by using a scheduler and querying the health endpoint. Would happily provide a PR for this if this is a way to go.

JWThewes avatar Jan 13 '21 14:01 JWThewes

@spencergibb Any interest that I provide a PR? Or is this not the way to go?

JWThewes avatar Jan 16 '21 05:01 JWThewes

@spencergibb @OlgaMaciaszek Any interest in a PR for this one.

JWThewes avatar Jan 26 '21 08:01 JWThewes

Yes, PRs welcome, that's why it's labeled "help wanted"

spencergibb avatar Jan 26 '21 15:01 spencergibb

Took some time because pandemic times require me too be there for my children. But now I've finally provided a solution for this.

JWThewes avatar Feb 17 '21 22:02 JWThewes

Totally understandable

spencergibb avatar Feb 17 '21 23:02 spencergibb