Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for automatic instance status publishing - fixes gh-266 #283

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JWThewes
Copy link

Adding support for automatic instance status publishing based on the HealthEndpoint to respect custom HealthIndicator instances. Therfore a ZookeeperInstanceHealthPublisher is introduced. Only activated when HealthEndpoint and TaskScheduler are available. fixedDelay can be configured. Fixes gh-266

The implementation is based on periodically querying the HealthEndpoint. If the status differs to the one in the service registry it is updated.

I added two endpoints to the sample app /up and /down. These set a flag inside a simple custom HealthIndicator giving the possibility to test it inside the sample app (be sure to activate automat instance status publishing via the properties).

Tests & documentation added .

…HealthEndpoint to respect custom HealthIndicator instances. Therfore a ZookeeperInstanceHealthPublisher is introduced. Only activated when HealthEndpoint and TaskScheduler are available. fixedDelay can be configured. Fixes spring-cloudgh-266
@JWThewes
Copy link
Author

Anyone looking into this. Would be willing to explain or make changes if required.

@spencergibb
Copy link
Member

We'll add it to this years release train for later this year.

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

Successfully merging this pull request may close these issues.

Health check using spring-boot actuator health endpoint
3 participants