Skip to content

Commit

Permalink
Do not autoscale deepem-gpu cluster
Browse files Browse the repository at this point in the history
It does not make sense to auto scale the cluster since the size is fixed
  • Loading branch information
ranlu committed Jan 17, 2025
1 parent 2c59d7e commit b480a2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dags/cluster_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def cluster_control():
cluster_api.resize_instance_group(cluster_info[key], 0)
continue

if num_workers != target_sizes[key]:
if num_workers != target_sizes[key] and key != "deepem-gpu":
target_sizes[key] = max(num_workers, 1)

if stable and requested_size < target_sizes[key]:
Expand Down
2 changes: 2 additions & 0 deletions dags/heartbeat_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def delete_dead_instances():
r = redis.Redis(redis_host)

for key in cluster_info:
if key == "deepem-gpu":
continue
if target_sizes.get(key, 0) == 0:
continue

Expand Down

0 comments on commit b480a2d

Please sign in to comment.