queryserving, observability: instrument vttablet query cache plan hits/misses#14947
Merged
frouioui merged 6 commits intovitessio:mainfrom Feb 16, 2024
Merged
Conversation
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14947 +/- ##
==========================================
+ Coverage 67.41% 67.44% +0.02%
==========================================
Files 1560 1561 +1
Lines 192752 193194 +442
==========================================
+ Hits 129952 130301 +349
- Misses 62800 62893 +93 ☔ View full report in Codecov by Sentry. |
harshit-gangal
approved these changes
Feb 12, 2024
frouioui
reviewed
Feb 12, 2024
changelog/19.0/19.0.0/summary.md
Outdated
Comment on lines
69
to
75
Member
There was a problem hiding this comment.
This should go in the changelog/20.0/20.0.0/summary.md summary file, if it does not exist yet you can create it.
Member
There was a problem hiding this comment.
Also a small nit pick, reading this it seems like VTTablet is only exposing these two counter stats now, maybe add "new" or something
frouioui
approved these changes
Feb 12, 2024
…s/misses Signed-off-by: Max Englander <max@planetscale.com>
Signed-off-by: Max Englander <max@planetscale.com>
Signed-off-by: Max Englander <max@planetscale.com>
Signed-off-by: Max Englander <max@planetscale.com>
33ae74f to
5b81f8c
Compare
…-plan-cache-miss Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Member
|
Conflicts are resolved, should be merged soon! |
This was referenced Jun 28, 2024
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add stats counters:
QueryCacheHits: Query engine query cache hitsQueryCacheMisses: Query engine query cache missesA query plan cache miss results in VTTablet parsing the query. This can add a significant amount of latency to a query execution. Having better visibility into query plan caching will help isolate or eliminate cache misses as a source of latency when analyzing query performance.
Related Issue(s)
Fixes #14946
Checklist
Deployment Notes