mirror of
https://github.com/wassname/ray.git
synced 2026-07-24 13:20:22 +08:00
[autoscaler/k8s] Preliminary k8s operator (#11929)
This commit is contained in:
@@ -103,7 +103,8 @@ class Monitor:
|
||||
# Keep a mapping from raylet client ID to IP address to use
|
||||
# for updating the load metrics.
|
||||
self.raylet_id_to_ip_map = {}
|
||||
self.load_metrics = LoadMetrics()
|
||||
head_node_ip = redis_address.split(":")[0]
|
||||
self.load_metrics = LoadMetrics(local_ip=head_node_ip)
|
||||
if autoscaling_config:
|
||||
self.autoscaler = StandardAutoscaler(autoscaling_config,
|
||||
self.load_metrics)
|
||||
|
||||
Reference in New Issue
Block a user