spring-cloud / spring-cloud/spring-cloud-zookeeper

Health check using spring-boot actuator health endpoint

Open
#266 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.