Skip to content

Enable Shard-Level Search-load rate metric #128660

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 10 commits into
base: main
Choose a base branch
from

Conversation

drempapis
Copy link
Contributor

This work is part of an approach to monitor search load per index in a multi-project Elasticsearch environment. The goal is to enable dynamic adjustment of replica counts to optimize resource utilization and maintain a balance between insufficient usage and resource saturation

At the core of this solution is the SearchStatsSettings class, which supports half-life calculations within ShardSearchStats::StatsHolder and configures the time interval for scheduled, pull-based collection of search node metrics, particularly relevant in serverless deployments.

Search load is tracked on a per-shard basis by computing the Exponentially Weighted Moving Rate (EWMR) in the ShardSearchStats class, using the "took" time from each completed search phase.

Additionally, a transport action has been implemented to support the on-demand retrieval of search load metrics directly from search nodes.

@drempapis drempapis requested review from andreidan and piergm May 30, 2025 09:23
@drempapis drempapis requested a review from a team as a code owner May 30, 2025 09:23
@drempapis drempapis added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/Search Catch all for Search Foundations v9.1.0 labels May 30, 2025
@elasticsearchmachine
Copy link
Collaborator

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

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.

2 participants