Skip to content

[Coordinator throttling] Endpoint on Java worker reporting nodestats#25687

Merged
prashantgolash merged 2 commits into
prestodb:masterfrom
prashantgolash:export-D79471792
Aug 27, 2025
Merged

[Coordinator throttling] Endpoint on Java worker reporting nodestats#25687
prashantgolash merged 2 commits into
prestodb:masterfrom
prashantgolash:export-D79471792

Conversation

@prashantgolash

Copy link
Copy Markdown
Contributor

Summary:
Similar to cpp worker added the endpoint for java.
We won't be using the worker-load as going forward we will be focussing on cpp worker only

Differential Revision: D79471792

@prashantgolash prashantgolash requested review from a team as code owners August 5, 2025 06:40
@prestodb-ci prestodb-ci added the from:Meta PR from Meta label Aug 5, 2025
@facebook-github-bot

Copy link
Copy Markdown
Collaborator

This pull request was exported from Phabricator. Differential Revision: D79471792

prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 5, 2025
Summary:

Similar to cpp worker added the endpoint for java.
We won't be using the worker-load as going forward we will be focussing on cpp worker only

Differential Revision: D79471792
prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 5, 2025
Summary:

Similar to cpp worker added the endpoint for java.
We won't be using the worker-load as going forward we will be focussing on cpp worker only

Differential Revision: D79471792
prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 5, 2025
Summary:

Similar to cpp worker added the endpoint for java.
We won't be using the worker-load as going forward we will be focussing on cpp worker only

Differential Revision: D79471792
@facebook-github-bot

Copy link
Copy Markdown
Collaborator

This pull request was exported from Phabricator. Differential Revision: D79471792

prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 5, 2025
…todb#25687)

Summary:

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
@facebook-github-bot

Copy link
Copy Markdown
Collaborator

This pull request was exported from Phabricator. Differential Revision: D79471792

@facebook-github-bot

Copy link
Copy Markdown
Collaborator

This pull request was exported from Phabricator. Differential Revision: D79471792

prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 5, 2025
…todb#25687)

Summary:

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 5, 2025
…todb#25687)

Summary:

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
@facebook-github-bot

Copy link
Copy Markdown
Collaborator

This pull request was exported from Phabricator. Differential Revision: D79471792

prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 5, 2025
…todb#25687)

Summary:
Pull Request resolved: prestodb#25687

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
@facebook-github-bot

Copy link
Copy Markdown
Collaborator

This pull request was exported from Phabricator. Differential Revision: D79471792

prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 5, 2025
…todb#25687)

Summary:
Pull Request resolved: prestodb#25687

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
@facebook-github-bot

Copy link
Copy Markdown
Collaborator

This pull request was exported from Phabricator. Differential Revision: D79471792

prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 5, 2025
…todb#25687)

Summary:
Pull Request resolved: prestodb#25687

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
@facebook-github-bot

Copy link
Copy Markdown
Collaborator

This pull request was exported from Phabricator. Differential Revision: D79471792

prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 11, 2025
…restodb#25687)

Summary:

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 11, 2025
…restodb#25687)

Summary:

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 11, 2025
…restodb#25687)

Summary:

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 11, 2025
…restodb#25687)

Summary:

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
@facebook-github-bot

Copy link
Copy Markdown
Collaborator

This pull request was exported from Phabricator. Differential Revision: D79471792

prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 11, 2025
…restodb#25687)

Summary:
Pull Request resolved: prestodb#25687

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
prashantgolash pushed a commit to prashantgolash/presto that referenced this pull request Aug 11, 2025
…restodb#25687)

Summary:
Pull Request resolved: prestodb#25687

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
prashantgolash added a commit to prashantgolash/presto that referenced this pull request Aug 27, 2025
…restodb#25687)

Summary:

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
@facebook-github-bot

Copy link
Copy Markdown
Collaborator

This pull request was exported from Phabricator. Differential Revision: D79471792

@tdcmeehan tdcmeehan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM % how we indicate presence of the stats.

Comment thread presto-spi/src/main/java/com/facebook/presto/spi/NodeLoadMetrics.java Outdated
…ad metrics (prestodb#25686)

Summary:

**Context:**
We want to consider worker load metrics to make scheduling decision from coordinator. Currently in single coordinator setup, it invokes /v1/info/state to get worker's state. 

**Approach:**
Added a new end point to get nodeStats. The idea is that we would replace 
"/v1/info/state" -> "/v1/info/nodestate" which will include nodeState + <worker load metrics>. This will help coordinator making scheduling decisions

Reviewed By: spershin

Differential Revision: D76357677
…restodb#25687)

Summary:

Similar to cpp worker added the endpoint for java. We won't be using the worker-load on Java workers

Differential Revision: D79471792
@facebook-github-bot

Copy link
Copy Markdown
Collaborator

This pull request was exported from Phabricator. Differential Revision: D79471792

@spershin spershin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@czentgr

czentgr commented Oct 2, 2025

Copy link
Copy Markdown
Contributor

@prashantgolash Can you please add/provide release notes for this PR? This adds a new endpoint so we would like to include it in the release notes.
Please see https://github.com/prestodb/presto/wiki/Working-with-the-Presto-release-notes-PR#release-note-entries for guidance. This is usually in the default description but is omitted from this PR.

@prashantgolash

Copy link
Copy Markdown
Contributor Author

@prashantgolash Can you please add/provide release notes for this PR? This adds a new endpoint so we would like to include it in the release notes. Please see https://github.com/prestodb/presto/wiki/Working-with-the-Presto-release-notes-PR#release-note-entries for guidance. This is usually in the default description but is omitted from this PR.

Sure I will add. Sorry for the delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants