Skip to content

Shard level search stats - DfsPhase #126380

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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

drempapis
Copy link
Contributor

@drempapis drempapis commented Apr 7, 2025

Enhances metrics collection by tracking time metrics and failures executions of DFS (Distributed Frequency Search). These metrics are exposed through the Stats API.

The SearchOperationListener has been extended to support DFS tracking, with ShardSearchStats providing the underlying implementation.

@drempapis drempapis self-assigned this Apr 8, 2025
@drempapis drempapis added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/Search Catch all for Search Foundations >non-issue labels Apr 8, 2025
@drempapis drempapis marked this pull request as ready for review April 8, 2025 15:23
@elasticsearchmachine
Copy link
Collaborator

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

@@ -113,6 +134,13 @@ private Stats(StreamInput in) throws IOException {

@Override
public void writeTo(StreamOutput out) throws IOException {
if (out.getTransportVersion().onOrAfter(TransportVersions.DFS_STATS)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Out of curiosity - do we ever clean up these checks once we're far enough into the future to safely assume all nodes are upgraded past this version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, Ben, for the review. Yes, there is a cleanup process; please check the following pr

Copy link
Contributor

@benchaplin benchaplin left a comment

Choose a reason for hiding this comment

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

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants