forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[yugabyte#7811][YW] Fix Slow Queries not fetching from every node or …
…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
- Loading branch information
Showing
2 changed files
with
121 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters