-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[server] Temp. disable expensive telemetry queries #8617
Conversation
/hold Don't merge |
/werft run 👍 started the job as gitpod-build-gpl-dis-telemetry.3 |
Codecov Report
@@ Coverage Diff @@
## main #8617 +/- ##
==========================================
- Coverage 12.31% 11.17% -1.14%
==========================================
Files 20 18 -2
Lines 1161 993 -168
==========================================
- Hits 143 111 -32
+ Misses 1014 880 -134
+ Partials 4 2 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/unhold |
/werft run 👍 started the job as gitpod-build-gpl-dis-telemetry.4 |
totalUsers: await this.userDb.getUserCount(true), | ||
totalWorkspaces: await this.workspaceDb.getWorkspaceCount(), | ||
totalInstances: await this.workspaceDb.getInstanceCount(), | ||
totalUsers: 0, //await this.userDb.getUserCount(true), |
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.
Why disable the user count query? (This seems unrelated to an index on workspace.type)
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.
It was Saturday morning - and retrospectively, I would argue to be consistent 😉
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.
Looks good to me, thanks!
Hopefully we can implement an index on workspace.type
and revert this PR soon. 🙂
Holding because of a question (feel free to unhold):
/hold
/unhold |
#8617 disabled the telemetry fields as those database queries were causing heavy CPU performance. #8858 fixed that issue by adding indexes for those queries. This PR also adds tracing for the telemetry data provider so that we can also count how long they take usually, and how frequently these are called. Signed-off-by: Tarun Pothulapati <[email protected]>
#8617 disabled the telemetry fields as those database queries were causing heavy CPU performance. #8858 fixed that issue by adding indexes for those queries. This PR also adds tracing for the telemetry data provider so that we can also count how long they take usually, and how frequently these are called. Signed-off-by: Tarun Pothulapati <[email protected]>
#8617 disabled the telemetry fields as those database queries were causing heavy CPU performance. #8858 fixed that issue by adding indexes for those queries. This PR also adds tracing for the telemetry data provider so that we can also count how long they take usually, and how frequently these are called. Signed-off-by: Tarun Pothulapati <[email protected]>
#8617 disabled the telemetry fields as those database queries were causing heavy CPU performance. #8858 fixed that issue by adding indexes for those queries. This PR also adds tracing for the telemetry data provider so that we can also count how long they take usually, and how frequently these are called. Signed-off-by: Tarun Pothulapati <[email protected]>
#8617 disabled the telemetry fields as those database queries were causing heavy CPU performance. #8858 fixed that issue by adding indexes for those queries. This PR also adds tracing for the telemetry data provider so that we can also count how long they take usually, and how frequently these are called. Signed-off-by: Tarun Pothulapati <[email protected]>
#8617 disabled the telemetry fields as those database queries were causing heavy CPU performance. #8858 fixed that issue by adding indexes for those queries. This PR also adds tracing for the telemetry data provider so that we can also count how long they take usually, and how frequently these are called. Signed-off-by: Tarun Pothulapati <[email protected]>
#8617 disabled the telemetry fields as those database queries were causing heavy CPU performance. #8858 fixed that issue by adding indexes for those queries. This PR also adds tracing for the telemetry data provider so that we can also count how long they take usually, and how frequently these are called. Signed-off-by: Tarun Pothulapati <[email protected]>
Description
This change disables the execution of all telemetry queries. As discussed with @corneliusludmann this it's meant as a temporary safety measure until a fix (#8638) is merged.
Related Issue(s)
Fixes #
How to test
Release Notes
Documentation