-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feat(elasticsearch): Add servlet which provides an endpoint for a healthcheck on the ES cl… #7799
Conversation
...ervice/health-servlet/src/main/java/com/datahub/health/controller/HealthCheckController.java
Fixed
Show resolved
Hide resolved
...ervice/health-servlet/src/main/java/com/datahub/health/controller/HealthCheckController.java
Fixed
Show fixed
Hide fixed
...ervice/health-servlet/src/main/java/com/datahub/health/controller/HealthCheckController.java
Fixed
Show resolved
Hide resolved
* Checks the memoized cache for the latest elastic health check result | ||
* @return The ResponseEntity containing the health check result | ||
*/ | ||
@GetMapping(path = "/elastic", produces = MediaType.APPLICATION_JSON_VALUE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the combined healthcheck endpoint. Specifically, the one that produces a common message with all of the component checks? The one which would be used by a readiness check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still to come.... :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still to come.... :D
private Supplier<ResponseEntity<String>> memoizedSupplier; | ||
|
||
public HealthCheckController () { | ||
this.memoizedSupplier = Suppliers.memoizeWithExpiration( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
…lthcheck on the ES cl… (#7799) Co-authored-by: Indy Prentice <[email protected]> Co-authored-by: Pedro Silva <[email protected]>
…ient
Checklist