[Autoscaler] Display node status tag in autsocaler status (#13561)

* .

* .

* .

* .

* .

* lint

Co-authored-by: Alex Wu <alex@anyscale.com>
This commit is contained in:
Alex Wu
2021-01-20 19:20:54 -08:00
committed by GitHub
co-authored by Alex Wu
parent a09997dc9e
commit b9ac3878ae
3 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -765,7 +765,7 @@ class StandardAutoscaler:
]
is_pending = status in pending_states
if is_pending:
pending_nodes.append((ip, node_type))
pending_nodes.append((ip, node_type, status))
else:
# TODO (Alex): Failed nodes are now immediately killed, so
# this list will almost always be empty. We should ideally
+2 -2
View File
@@ -362,8 +362,8 @@ def format_info_string(lm_summary, autoscaler_summary, time=None):
for node_type, count in autoscaler_summary.pending_launches.items():
line = f" {node_type}, {count} launching"
pending_lines.append(line)
for ip, node_type in autoscaler_summary.pending_nodes:
line = f" {ip}: {node_type}, setting up"
for ip, node_type, status in autoscaler_summary.pending_nodes:
line = f" {ip}: {node_type}, {status.lower()}"
pending_lines.append(line)
if pending_lines:
pending_report = "\n".join(pending_lines)