[native][Coordinator throttling] Endpoint on worker reporting node load metrics#25686
[native][Coordinator throttling] Endpoint on worker reporting node load metrics#25686prashantgolash wants to merge 1 commit into
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
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 Differential Revision: D76357677
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 Differential Revision: D76357677
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 Differential Revision: D76357677
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 Differential Revision: D76357677
88d5f58 to
1077929
Compare
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
…cs (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 Differential Revision: D76357677
1077929 to
2ca89b5
Compare
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
2ca89b5 to
22a7a97
Compare
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
22a7a97 to
aa16de1
Compare
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
…cs (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 Differential Revision: D76357677
…cs (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 Differential Revision: D76357677
aa16de1 to
4ae7132
Compare
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
…cs (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 Differential Revision: D76357677
…cs (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 Differential Revision: D76357677
4ae7132 to
b10fb57
Compare
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
…cs (prestodb#25686) Summary: Pull Request resolved: prestodb#25686 **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 Differential Revision: D76357677
…cs (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 Differential Revision: D76357677
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
…cs (prestodb#25686) Summary: Pull Request resolved: prestodb#25686 **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 Differential Revision: D76357677
701f42a to
ddeadaa
Compare
…cs (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 Differential Revision: D76357677
…cs (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 Differential Revision: D76357677
…cs (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 Differential Revision: D76357677
…cs (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 Differential Revision: D76357677
ddeadaa to
e1f2b7c
Compare
…cs (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 Differential Revision: D76357677
…cs (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 Differential Revision: D76357677
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
…cs (prestodb#25686) Summary: Pull Request resolved: prestodb#25686 **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 Differential Revision: D76357677
e1f2b7c to
a7644cd
Compare
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
|
Test case doesn’t look related to this change. |
tdcmeehan
left a comment
There was a problem hiding this comment.
Is it possible to test this endpoint?
| @JsonProperty("cpuUsedPercent") Double cpuUsedPercent, | ||
| @JsonProperty("memoryUsedInBytes") Double memoryUsedInBytes, | ||
| @JsonProperty("cpuOverload") Boolean cpuOverload, | ||
| @JsonProperty("memoryOverload") Boolean memoryOverload) |
There was a problem hiding this comment.
| @JsonProperty("cpuUsedPercent") Double cpuUsedPercent, | |
| @JsonProperty("memoryUsedInBytes") Double memoryUsedInBytes, | |
| @JsonProperty("cpuOverload") Boolean cpuOverload, | |
| @JsonProperty("memoryOverload") Boolean memoryOverload) | |
| @JsonProperty("cpuUsedPercent") double cpuUsedPercent, | |
| @JsonProperty("memoryUsedInBytes") double memoryUsedInBytes, | |
| @JsonProperty("cpuOverload") boolean cpuOverload, | |
| @JsonProperty("memoryOverload") boolean memoryOverload) |
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
Added the stand alone end point testing. |
spershin
left a comment
There was a problem hiding this comment.
Tim was asking for some endpoint test. Do we have tests for other endpoints, so we can craft this was similarly?
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
We don't have any existing tests for endpoints. I updated my test plan. |
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
…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
|
This pull request was exported from Phabricator. Differential Revision: D76357677 |
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 + . This will help coordinator making scheduling decisions
Differential Revision: D76357677
Testing
curl <worker_host>/v1/info/stats
{
"loadMetrics": {
"cpuOverload": false,
"cpuUsedPercent": 0,
"memoryOverload": true,
"memoryUsedInBytes": 0,
"numQueuedDrivers": 0
},
"nodeState": "ACTIVE"
}