Skip to content

Add query cache hit count and query cache miss count #49737

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

Closed
wants to merge 1 commit into from
Closed

Add query cache hit count and query cache miss count #49737

wants to merge 1 commit into from

Conversation

Salil999
Copy link

@Salil999 Salil999 commented Dec 1, 2019

First PR.

Added in query cache hit count and query cache miss count. This is to resolve #48645.

I wasn't able to see or find any relevant unit tests for this method. Please let me know if I missed it somewhere.

@Salil999 Salil999 changed the title Add query cache hit count and query cache miss count (#48645) Add query cache hit count and query cache miss count Dec 1, 2019
@cbuescher cbuescher added the :Data Management/CAT APIs Text APIs behind /_cat label Dec 2, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/CAT APIs)

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this PR @Salil999!
I left a comment, because right now only the header is modified.

@@ -159,6 +159,8 @@ protected Table getTableWithHeader(final RestRequest request) {

table.addCell("query_cache.memory_size", "alias:qcm,queryCacheMemory;default:false;text-align:right;desc:used query cache");
table.addCell("query_cache.evictions", "alias:qce,queryCacheEvictions;default:false;text-align:right;desc:query cache evictions");
table.addCell("query_cache.hit_count", "alias:qchc,queryCacheHitCount;default:false;text-align:right;desc:query cache hit counts");
table.addCell("query_cache.miss_count", "alias:qcmc,queryCacheMissCount;default:false;text-align:right;desc:query cache miss counts");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will also need to add the actual data after line 341:

table.addCell(fcStats == null ? null : fcStats.getHitCount());
table.addCell(fcStats == null ? null : fcStats.getMissCount());

@rjernst rjernst added the Team:Data Management Meta label for data/management team label May 4, 2020
@jakelandis
Copy link
Contributor

Closing this PR as stale. Please feel free to resolve the comment and re-open.

@jakelandis jakelandis closed this Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/CAT APIs Text APIs behind /_cat >enhancement Team:Data Management Meta label for data/management team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add query cache hit count and field data cache hit count to rest API
6 participants