Skip to content
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

Merged
merged 1 commit into from
Mar 7, 2022
Merged

Conversation

geropl
Copy link
Member

@geropl geropl commented Mar 5, 2022

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

NONE

Documentation

  • /werft no-preview=true

@geropl
Copy link
Member Author

geropl commented Mar 5, 2022

/hold

Don't merge

@geropl
Copy link
Member Author

geropl commented Mar 5, 2022

/werft run

👍 started the job as gitpod-build-gpl-dis-telemetry.3

@codecov
Copy link

codecov bot commented Mar 5, 2022

Codecov Report

Merging #8617 (655063e) into main (f893ad5) will decrease coverage by 1.13%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Flag Coverage Δ
components-gitpod-cli-app 11.17% <ø> (ø)
components-local-app-app-darwin-amd64 ?
components-local-app-app-darwin-arm64 ?
components-local-app-app-linux-amd64 ?
components-local-app-app-linux-arm64 ?
components-local-app-app-windows-386 ?
components-local-app-app-windows-amd64 ?
components-local-app-app-windows-arm64 ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
components/local-app/pkg/auth/pkce.go
components/local-app/pkg/auth/auth.go

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f893ad5...655063e. Read the comment docs.

@geropl
Copy link
Member Author

geropl commented Mar 7, 2022

/unhold

@geropl geropl marked this pull request as ready for review March 7, 2022 16:26
@geropl geropl requested a review from a team March 7, 2022 16:26
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Mar 7, 2022
@geropl
Copy link
Member Author

geropl commented Mar 7, 2022

/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),
Copy link
Contributor

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)

Copy link
Member Author

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 😉

Copy link
Contributor

@jankeromnes jankeromnes left a 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

@geropl
Copy link
Member Author

geropl commented Mar 7, 2022

/unhold

@roboquat roboquat merged commit 7e3c92e into main Mar 7, 2022
@roboquat roboquat deleted the gpl/dis-telemetry branch March 7, 2022 16:44
Pothulapati added a commit that referenced this pull request Mar 21, 2022
#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]>
Pothulapati added a commit that referenced this pull request Mar 21, 2022
#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]>
Pothulapati added a commit that referenced this pull request Mar 21, 2022
#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]>
Pothulapati added a commit that referenced this pull request Mar 22, 2022
#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]>
Pothulapati added a commit that referenced this pull request Mar 28, 2022
#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]>
roboquat pushed a commit that referenced this pull request Mar 29, 2022
#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]>
Pothulapati added a commit that referenced this pull request Mar 30, 2022
#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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none size/XS team: webapp Issue belongs to the WebApp team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants