spring-cloud / spring-cloud/spring-cloud-zookeeper
Health check using spring-boot actuator health endpoint
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 574
- Forks
- 408
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 4
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace how the customized HealthIndicator and Spring Boot Actuator health status become the znode's instance_status, then examine how spring-cloud-gateway uses the Zookeeper registry. Confirm the expected behavior with a service marked DOWN: requests should no longer be forwarded to it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100