Skip to content
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

[POC] Query-level resource usages instrumentation with SearchPhaseResult #12449

Conversation

ansjcy
Copy link
Member

@ansjcy ansjcy commented Feb 24, 2024

Bare minimum changes to:

  • Instrument resource usages before a task finishes on a data node, more specifically, get resource usages at the last step (serialization) before a phase response is sent from query/fetch/.. phase.
  • Piggyback the resource usages data with phase results.
  • Gather resource usages for all shard search tasks on coordinator node (in query insights plugin) to get the query-level resource usage.

This draft only added instrumentation for query phase and fetch phase.

Description

[Describe what this change achieves]

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ansjcy ansjcy marked this pull request as draft February 24, 2024 01:56
@ansjcy ansjcy changed the title instrument resource usage before task finishes on data nodes and gath… Query-level resource usages instrumentation Feb 24, 2024
Copy link
Contributor

❌ Gradle check result for 05d268d: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

Compatibility status:

Checks if related components are compatible with change 05d268d

Incompatible components

Skipped components

Compatible components

@@ -90,7 +90,7 @@ public static TaskResourceUsage fromXContent(XContentParser parser) {

@Override
public String toString() {
return Strings.toString(MediaTypeRegistry.JSON, this, true, true);
Copy link
Member Author

Choose a reason for hiding this comment

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

for debugging purpoose only

@opensearch-trigger-bot
Copy link
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label Mar 28, 2024
@mgodwan
Copy link
Member

mgodwan commented Apr 23, 2024

@ansjcy Are you planning to continue on this PR and targeting any upcoming release?
This has been stalled now, and if this is not planned to be continued, lets close this.

@opensearch-trigger-bot opensearch-trigger-bot bot removed the stalled Issues that have stalled label Apr 23, 2024
@opensearch-trigger-bot
Copy link
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label May 23, 2024
@kotwanikunal
Copy link
Member

Closing this PR - it has been in a draft state since a while.
@ansjcy Please reopen if you are still working on it.

@ansjcy ansjcy changed the title Query-level resource usages instrumentation [POC] Query-level resource usages instrumentation with SearchPhaseResult Jun 12, 2024
@ansjcy ansjcy changed the title [POC] Query-level resource usages instrumentation with SearchPhaseResult [POC] Query-level resource usages instrumentation with SearchPhaseResult Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stalled Issues that have stalled
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants