grpc/sa: Implement deep health checks#6928
Merged
beautifulentropy merged 10 commits intomainfrom Jun 12, 2023
Merged
Conversation
0074147 to
5f34810
Compare
5f34810 to
d8cb2ff
Compare
pgporada
previously approved these changes
Jun 8, 2023
aarongable
reviewed
Jun 8, 2023
I thought I understood this, but I don't yet.
Member
Author
|
@pgporada and I had a call to chat through his questions. |
Member
Author
aarongable
reviewed
Jun 9, 2023
Contributor
aarongable
left a comment
There was a problem hiding this comment.
Mostly tiny code organization comments. Last top-level comment: it would be great to have a unittest that tests the check closure: sets up a health server, supplies a tiny fake health check function, and ensures that the health server's status was updated appropriately. This may require busting check all the way out to being a method on serverBuilder or something like that, rather than being a closure =/
pgporada
reviewed
Jun 9, 2023
aarongable
previously approved these changes
Jun 9, 2023
aarongable
approved these changes
Jun 9, 2023
pgporada
approved these changes
Jun 12, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Add the necessary scaffolding for deep health checking of our various gRPC components. Each component implementation that also implements the grpc.checker interface will be checked periodically, and the health status of the component will be updated accordingly.
Add the necessary methods to SA to implement the grpc.checker interface and register these new health checks with Consul.
Additionally:
Fixes #6878
Part of #6795