-
Notifications
You must be signed in to change notification settings - Fork 72
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 Healthcheck logic #3884
Update Healthcheck logic #3884
Conversation
Passing run #3457 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3884 +/- ##
=======================================
Coverage 86.95% 86.95%
=======================================
Files 317 317
Lines 19398 19393 -5
Branches 2494 2493 -1
=======================================
- Hits 16867 16864 -3
+ Misses 2103 2102 -1
+ Partials 428 427 -1
☔ View full report in Codecov by Sentry. |
I don't believe any of these test failures are related to these changes |
Co-authored-by: Robert Keyser <[email protected]>
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 work @ThomasLaPiana ! Looks good and nice use of the existing db health check in get_db_engine
Closes #2517
Description Of Changes
The
database
health check step was found to be extremely heavy, sometimes spiking response times to ~1 sec when running locally with nothing else hitting the serverAfter doing some investigation of the
worker
checks as well, I couldn't find evidence that this was an issue. It only increased processing time by ~6ms. After checking everything I believe that the database was the primary culprit here, but we'll continue to monitor this fix as it is rolled out and verify that conclusion.Code Changes
Steps to Confirm
ipython
and run some tests usingrequests
to get those logs populated, verify the numbers look rightdatabase.py
and force the url to be wrong for the healthcheck function. Ensure that the status is 503 and the error is loggedPre-Merge Checklist
CHANGELOG.md