mirror of
https://github.com/wassname/ray.git
synced 2026-08-04 13:14:14 +08:00
[Core] Put raylet ip's in resource usage report (#13871)
* . * done? Co-authored-by: Alex Wu <alex@anyscale.com>
This commit is contained in:
committed by
Alex Wu
co-authored by
Alex Wu
parent
b4d87b8fc5
commit
34e0dfe934
@@ -325,6 +325,8 @@ message ResourcesData {
|
||||
ResourceLoad resource_load_by_shape = 7;
|
||||
// Whether this node manager is requesting global GC.
|
||||
bool should_global_gc = 8;
|
||||
// IP address of the node.
|
||||
string node_manager_address = 9;
|
||||
}
|
||||
|
||||
message ResourceUsageBatchData {
|
||||
|
||||
@@ -452,6 +452,7 @@ void NodeManager::Heartbeat() {
|
||||
void NodeManager::ReportResourceUsage() {
|
||||
auto resources_data = std::make_shared<rpc::ResourcesData>();
|
||||
resources_data->set_node_id(self_node_id_.Binary());
|
||||
resources_data->set_node_manager_address(initial_config_.node_manager_address);
|
||||
// Update local chche from gcs remote cache, this is needed when gcs restart.
|
||||
// We should always keep the cache view consistent.
|
||||
cluster_resource_scheduler_->UpdateLastResourceUsage(
|
||||
|
||||
Reference in New Issue
Block a user