Skip to content

[DOCS] CCS stats median should be average #126660

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
consulthys opened this issue Apr 11, 2025 · 2 comments
Closed

[DOCS] CCS stats median should be average #126660

consulthys opened this issue Apr 11, 2025 · 2 comments
Assignees
Labels
>docs General docs changes :Search Foundations/CCS Team:Docs Meta label for docs team Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Comments

@consulthys
Copy link
Contributor

consulthys commented Apr 11, 2025

Elasticsearch Version

8.16+

Installed Plugins

Java Version

bundled

OS Version

Problem Description

In the official documentation about the Cluster Stats API, the response contains different *.took*.avg values in the css._search section that are described as median instead of average. Median and average are different, and it was confirmed that the actual value behind the avg value is truly an average and not a median.

Hence, we should correct the following fields descriptions:

  • ccs._search.took.avg: (integer) The average time taken to execute a cross-cluster search request, in milliseconds.
  • ccs._search.took_mrt_true.avg: (integer) The average time taken to execute a cross-cluster search request, in milliseconds.
  • ccs._search.took_mrt_false.avg: (integer) The average time taken to execute a cross-cluster search request, in milliseconds.
  • ccs._search.clusters.took.avg: (integer) The average time taken to execute a cross-cluster search request, in milliseconds.

Another field called remotes_per_search_avg is properly defined as The average number of remote clusters that were queried in a single cross-cluster search request, so all *avg fields should have a consistent description.

Steps to Reproduce

Go to the Cluster Stats API documentation

Logs (if relevant)

None

@consulthys consulthys added >bug needs:triage Requires assignment of a team area label Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/CCS labels Apr 11, 2025
@elasticsearchmachine elasticsearchmachine removed the needs:triage Requires assignment of a team area label label Apr 11, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@javanna javanna added >docs General docs changes and removed >bug labels Apr 11, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes :Search Foundations/CCS Team:Docs Meta label for docs team Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

4 participants