Skip to content

Commit f9fb40f

Browse files
committed
Adding the exclusive topology by hostname for the head job
Changing the name of the worker container to pathways-worker
1 parent 4f3c12f commit f9fb40f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

axlearn/cloud/gcp/pathways_utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,11 @@ def _build_pathways_head_job(self):
429429
annotations = _LoadBalancer(
430430
jobset_name=cfg.name, replicated_job_name=_PATHWAYS_HEAD_REPLICATED_JOB_NAME
431431
).metadata
432+
annotations.update(
433+
{
434+
"alpha.jobset.sigs.k8s.io/exclusive-topology": "kubernetes.io/hostname",
435+
}
436+
)
432437
spec = dict(
433438
parallelism=1,
434439
completions=1,
@@ -451,6 +456,8 @@ def _build_pathways_worker_container(
451456
container = self._inner._build_container()
452457

453458
worker_container = copy.deepcopy(container)
459+
worker_container["name"] = "pathways-worker"
460+
454461
env_list = worker_container.get("env", [])
455462

456463
pathways_head_address = self._get_pathways_head_address(

0 commit comments

Comments
 (0)