CoreWorker correctly push metrics to agent (#10031)

This commit is contained in:
Simon Mo
2020-08-13 16:44:53 -07:00
committed by GitHub
parent b77d6bf87d
commit 01f38bc5d1
6 changed files with 72 additions and 27 deletions
+2 -1
View File
@@ -104,7 +104,8 @@ class Node:
head), "LRU Evict can only be passed into the head node."
self._raylet_ip_address = raylet_ip_address
self.metrics_agent_port = self._get_unused_port()[0]
self.metrics_agent_port = (ray_params.metrics_agent_port
or self._get_unused_port()[0])
self._metrics_export_port = ray_params.metrics_export_port
if self._metrics_export_port is None:
self._metrics_export_port = self._get_unused_port()[0]