-
Notifications
You must be signed in to change notification settings - Fork 26
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
🐛 fix/low-CPU-load healthcheck for migration service #3477
🐛 fix/low-CPU-load healthcheck for migration service #3477
Conversation
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.
Thanks looks good, I guess by checking the existence of the "done" file you avoid pgSQL queries. Looks promissing
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.
waow, that is an interesting side effect... I'd like to have some more info about that CPU credit thing to understand it better.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What do these changes do?
New healthcheck function for the migration service with low CPU footprint.
Why this change ?
Previous healthcheck has been producing an almost constant (~13 %) CPU usage. See @mrnicegyu11's promQL request
After a couple of days, that ended up consuming all CPU credit in AWS. See outcome from @Surfict's research:
This is probably what caused the instabilities we have been experiencing in the last days in the e2e.
🚑️ This should be hot-fixed to staging before ITISFoundation/osparc-issues#753