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

Update health check status code strategy #795

Merged
merged 1 commit into from Feb 13, 2024

Conversation

yinan-symphony
Copy link
Contributor

@yinan-symphony yinan-symphony commented Feb 13, 2024

Separate DataFeedLoop health check from the other components, set the global status to out of service only if DataFeedLoop is down. In this case, when calling health check endpoint, the response http code is 503, otherwise if any other components is down, set the global status to "WARNING", the http code of the response stays as 200.

This will avoid unnecessary BDK Bot restarting when other components are not healthy.

Remove the custom status code mapper, and use the default mapping behaviour of Spring Boot.

Description

Closes #[ISSUE NUMBER]

Please put here the intent of your pull request.

Dependencies

List the other pull requests that should be merged before/along this one.

Checklist

  • Referenced an issue in the PR title or description
  • Filled properly the description and dependencies, if any
  • Unit/Integration tests updated or added
  • Javadoc added or updated
  • Updated the documentation in docs folder

Separte DataFeedLoop health check from the other components,
set the global status to out of service only if DataFeedLoop
is down. In this case, when calling healtch check endpoint,
the resposne http code is 500, otherwise if any other components
is down, set the global status to "WARNING", the http code of the response
stays as 200.

This will avoid unncessary BDK Bot restarting when other components
are not healthy.
@yinan-symphony yinan-symphony changed the title Update health check strategy Update health check status code strategy Feb 13, 2024
@yinan-symphony yinan-symphony merged commit 9b9e2ff into finos:main Feb 13, 2024
4 checks passed
vladokrsymphony pushed a commit that referenced this pull request Mar 25, 2024
Separte DataFeedLoop health check from the other components,
set the global status to out of service only if DataFeedLoop
is down. In this case, when calling healtch check endpoint,
the resposne http code is 500, otherwise if any other components
is down, set the global status to "WARNING", the http code of the response
stays as 200.

This will avoid unncessary BDK Bot restarting when other components
are not healthy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants