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

[Platform] Slow Queries doesnt work on K8s universe pods #7811

Closed
VijiYB opened this issue Mar 25, 2021 · 1 comment
Closed

[Platform] Slow Queries doesnt work on K8s universe pods #7811

VijiYB opened this issue Mar 25, 2021 · 1 comment
Assignees
Labels
area/platform Yugabyte Platform priority/high High Priority
Projects
Milestone

Comments

@VijiYB
Copy link

VijiYB commented Mar 25, 2021

Slow queries doesn't show any ysql queries running on k8s pods.

@VijiYB VijiYB added the area/platform Yugabyte Platform label Mar 25, 2021
@streddy-yb streddy-yb added this to To do in Platform Mar 25, 2021
@streddy-yb streddy-yb added this to the 2.7.x milestone Mar 25, 2021
@andrewc-dev andrewc-dev moved this from To do to In progress in Platform Apr 1, 2021
@streddy-yb streddy-yb added the priority/high High Priority label Apr 15, 2021
andrewc-dev pushed a commit that referenced this issue Apr 19, 2021
Summary:
Slow queries is currently not displaying all queries on k8s universe pods. The reason is
due to the database only storing pg_stat_statements on the node which received the queries.
Currently we fetch queries from the first node/pod in the list, so let's fetch from all nodes and
aggregate the results. This issue should also be apparently on multi-node clusters or when queries
are run against read replicas.
**Note: I haven't tested it locally yet due to being unable to create universes, so it would be helpful to hear opinions on whether this is the best way to go about it.**

Test Plan:
Create multi-node (or k8s) universe and run queries on different nodes and check that YW displays the
information correctly. Confirm that queries on read replicas also show up.

Reviewers: arnav, wesley, sb-yb, spotachev

Reviewed By: spotachev

Subscribers: jenkins-bot, yugaware

Differential Revision: https://phabricator.dev.yugabyte.com/D11114
YintongMa pushed a commit to YintongMa/yugabyte-db that referenced this issue May 26, 2021
…pod.

Summary:
Slow queries is currently not displaying all queries on k8s universe pods. The reason is
due to the database only storing pg_stat_statements on the node which received the queries.
Currently we fetch queries from the first node/pod in the list, so let's fetch from all nodes and
aggregate the results. This issue should also be apparently on multi-node clusters or when queries
are run against read replicas.
**Note: I haven't tested it locally yet due to being unable to create universes, so it would be helpful to hear opinions on whether this is the best way to go about it.**

Test Plan:
Create multi-node (or k8s) universe and run queries on different nodes and check that YW displays the
information correctly. Confirm that queries on read replicas also show up.

Reviewers: arnav, wesley, sb-yb, spotachev

Reviewed By: spotachev

Subscribers: jenkins-bot, yugaware

Differential Revision: https://phabricator.dev.yugabyte.com/D11114
@andrewc-dev andrewc-dev moved this from In progress to Needs QA/Docs in Platform Jun 24, 2021
@shashwat-yb
Copy link
Contributor

shashwat-yb commented Jun 25, 2021

Validated this issue by running sample apps in k8 universe on 2.6 b-57 and verified the slow queries.

cc @VijiYB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform Yugabyte Platform priority/high High Priority
Projects
Platform
  
Needs QA/Docs
Development

No branches or pull requests

4 participants