-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add active worker count and active coordinator count metrics #27408
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -297,6 +297,12 @@ | |
| <old>method void io.trino.spi.block.PageBuilderStatus::<init>()</old> | ||
| <justification>Method is unnecessary</justification> | ||
| </item> | ||
| <item> | ||
| <ignore>true</ignore> | ||
| <code>java.method.addedToInterface</code> | ||
| <new>method boolean io.trino.spi.Node::isWorker()</new> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's unnecessary to add it, since the worker means not coordinator. we already has
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because a node can be a worker and coordinator at the same time using node-scheduler.include-coordinator as described here: https://trino.io/docs/current/installation/deployment.html#config-properties
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is still a coordinator, that is allow schedule task on it but it is not a worker
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With So with |
||
| <justification>Added the boolean method isWorker</justification> | ||
| </item> | ||
| </differences> | ||
| </revapi.differences> | ||
| </analysisConfiguration> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,4 +24,6 @@ public interface Node | |
| String getVersion(); | ||
|
|
||
| boolean isCoordinator(); | ||
|
|
||
| boolean isWorker(); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,4 +57,10 @@ public boolean isCoordinator() | |
| { | ||
| return false; | ||
| } | ||
|
|
||
| @Override | ||
| public boolean isWorker() | ||
| { | ||
| return true; | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This constructor is used in quite some test files. Shall I remove this constructor and update the tests, or shall I keep it this way?