-
Notifications
You must be signed in to change notification settings - Fork 282
Health Endpoint Design Document #2503
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
Conversation
How would the health endpoint will function with hot reload? In case of bad config it might use last good known config which might give wrong status. Would be good to add limitations. |
I dont see an issue in this, If DAB Engine is working then health point should be consistent with that. If DAB engine is using the last known config, then health endpoint would also show the health of the last known config. Another important point to note is.. Health is independent of Validity of config. Health endpoint is only shown when the config is valid (no errors) and DAB engine is running. So the case of bad config would not occur. @JerryNixon , Any thoughts on this? |
Thanks for clarifying. can you add the same to your documentation as well. |
How will we be checking if an endpoint is healthy or not? Are we gonna make a db call internally? Or hit the endpoint itself to check the status? Or something else? |
Yes, as mentioned in the document, we would be making the call internally and hitting the specified query. If this query is sucessfull and within the threshold specified, the entity would be considered healthy. Else, we would say, its unhealthy with the exception message |
What if the specified query itself has Syntax errors? if the datasource is healthy, we might report a false -ve. how do we plan to validate the query text? |
Fix the PR description to remove the text from the PR template |
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.
Waiting for addressing the comments
Co-authored-by: RubenCerna2079 <32799214+RubenCerna2079@users.noreply.github.com> Co-authored-by: Aniruddh Munde <anmunde@microsoft.com>
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.
/azp run |
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.
LGTM, thanks for updating.
/azp run |
1 similar comment
/azp run |
/azp run |
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.
This has come a long way! Thank you for your patience in addressing all the comments.
Left a few comments to answer but other than that looks good to merge.
…m/Azure/data-api-builder into sezalchug/designDocHealthEndpoint
/azp run |
/azp run |
Merging for now. Will address any more comments in further PRs
/azp run |
Why make this change?
Design Document for Health Endpoint
Resolves: 2504
What is this change?
Adding a design doc to help contributors to get an understanding of how the end to end health endpoint is coded and tested