opensearch-project / opensearch-project/OpenSearch
Add coordination time to profiler
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 13.7k
- Forks
- 3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 108
Description
Describe the bug
Took time on profiled request is 1.3 seconds, inspecting the shards search/aggregations times they are all under 460ms-339ms. This implies coordination had a substantial impact on the response time.
To Reproduce
Steps to reproduce the behavior:
- Take a query from your ES instances slow log
- Repeat the query with
"profile":"true"until took time is above an acceptable threshold - Investigate the response by computing per shard - query / rewrite / collector time
- Print the list of shard based times
- Look for the 'longest running shard' to determine the bottleneck
- Inspect the the coordinated time breakdown
Expected behavior
There would be a breakdown for coordination
Plugins
N/A
Screenshots
N/A
Host/Environment (please complete the following information):
- OS: Linux x64
Additional context
In some ways this is a feature request - but this is also an incomplete scenario to diagnose performance issues with this existing profiling tools.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with a slow-log query and "profile":"true", then compare the total took time with the per-shard query, rewrite, and collector timings. Trace the profiler's coordination path and define the breakdown needed to account for time not attributed to individual shards. Done means the profile response reports coordination time alongside shard-based timings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, performance, search
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100