[Core] Put raylet ip's in resource usage report (#13871)

* .

* done?

Co-authored-by: Alex Wu <alex@anyscale.com>
This commit is contained in:
Alex Wu
2021-02-03 15:54:46 -08:00
committed by Alex Wu
co-authored by Alex Wu
parent b4d87b8fc5
commit 34e0dfe934
3 changed files with 29 additions and 0 deletions
+2
View File
@@ -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 {
+1
View File
@@ -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(