Skip to content

Commit 00ba388

Browse files
authored
chore(ci): fold node-slot scheduling into the priority scheduler (#5073)
1 parent fa0bc50 commit 00ba388

6 files changed

Lines changed: 39 additions & 84 deletions

File tree

‎.github/workflows/benchmark-multinode-tmpl.yml‎

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -192,21 +192,12 @@ jobs:
192192
runs-on: >- # zizmor: ignore[self-hosted-runner] GPU Slurm runners by design; callers gate fork PRs behind maintainer-applied sweep labels
193193
${{ fromJSON(
194194
vars.PRIORITY_SCHEDULER_ENABLED == 'true' &&
195-
(
196-
vars.NODE_SLOT_SCHEDULER_ENABLED == 'true' &&
197-
format(
198-
'["self-hosted",{0},{1},{2},{3}]',
199-
toJSON(inputs.runner),
200-
toJSON(format('nodes:{0}', inputs.node-count)),
201-
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
202-
toJSON(format('ci-attempt-{0}', github.run_attempt))
203-
) ||
204-
format(
205-
'["self-hosted",{0},{1},{2}]',
206-
toJSON(inputs.runner),
207-
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
208-
toJSON(format('ci-attempt-{0}', github.run_attempt))
209-
)
195+
format(
196+
'["self-hosted",{0},{1},{2},{3}]',
197+
toJSON(inputs.runner),
198+
toJSON(format('nodes:{0}', inputs.node-count)),
199+
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
200+
toJSON(format('ci-attempt-{0}', github.run_attempt))
210201
) ||
211202
format('[{0}]', toJSON(inputs.runner))
212203
) }}

‎.github/workflows/benchmark-tmpl.yml‎

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -166,21 +166,12 @@ jobs:
166166
runs-on: >- # zizmor: ignore[self-hosted-runner] GPU Slurm runners by design; callers gate fork PRs behind maintainer-applied sweep labels
167167
${{ fromJSON(
168168
vars.PRIORITY_SCHEDULER_ENABLED == 'true' &&
169-
(
170-
vars.NODE_SLOT_SCHEDULER_ENABLED == 'true' &&
171-
format(
172-
'["self-hosted",{0},{1},{2},{3}]',
173-
toJSON(inputs.runner),
174-
'"nodes:1"',
175-
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
176-
toJSON(format('ci-attempt-{0}', github.run_attempt))
177-
) ||
178-
format(
179-
'["self-hosted",{0},{1},{2}]',
180-
toJSON(inputs.runner),
181-
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
182-
toJSON(format('ci-attempt-{0}', github.run_attempt))
183-
)
169+
format(
170+
'["self-hosted",{0},{1},{2},{3}]',
171+
toJSON(inputs.runner),
172+
'"nodes:1"',
173+
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
174+
toJSON(format('ci-attempt-{0}', github.run_attempt))
184175
) ||
185176
format('[{0}]', toJSON(inputs.runner))
186177
) }}

‎.github/workflows/collectivex-sweep.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ jobs:
102102
${{ fromJSON(format('["self-hosted",{0}{1}{2}]',
103103
toJSON(matrix.runner),
104104
matrix.runner_partition != '' && format(',{0}', toJSON(matrix.runner_partition)) || '',
105-
vars.PRIORITY_SCHEDULER_ENABLED == 'true' && format(',{0}{1},{2}',
106-
vars.NODE_SLOT_SCHEDULER_ENABLED == 'true' && format('{0},', toJSON(format('nodes:{0}', matrix.nodes))) || '',
105+
vars.PRIORITY_SCHEDULER_ENABLED == 'true' && format(',{0},{1},{2}',
106+
toJSON(format('nodes:{0}', matrix.nodes)),
107107
toJSON(format('ci-job-{0}-{1}', matrix.priority, matrix.queue-token)),
108108
toJSON(format('ci-attempt-{0}', github.run_attempt))) || '')) }}
109109
name: p${{ matrix.priority }} | CollectiveX ${{ matrix.id }}

‎.github/workflows/profile.yml‎

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -192,29 +192,16 @@ jobs:
192192
runs-on: >- # zizmor: ignore[self-hosted-runner] GPU Slurm runners by design; workflow_dispatch only
193193
${{ fromJSON(
194194
vars.PRIORITY_SCHEDULER_ENABLED == 'true' &&
195-
(
196-
vars.NODE_SLOT_SCHEDULER_ENABLED == 'true' &&
197-
format(
198-
'["self-hosted",{0},{1},{2},{3}]',
199-
toJSON(matrix.config.runner),
200-
toJSON(format('nodes:{0}', matrix.config['node-count'])),
201-
toJSON(format(
202-
'ci-job-{0}-{1}',
203-
matrix.config.priority,
204-
matrix.config['queue-token']
205-
)),
206-
toJSON(format('ci-attempt-{0}', github.run_attempt))
207-
) ||
208-
format(
209-
'["self-hosted",{0},{1},{2}]',
210-
toJSON(matrix.config.runner),
211-
toJSON(format(
212-
'ci-job-{0}-{1}',
213-
matrix.config.priority,
214-
matrix.config['queue-token']
215-
)),
216-
toJSON(format('ci-attempt-{0}', github.run_attempt))
217-
)
195+
format(
196+
'["self-hosted",{0},{1},{2},{3}]',
197+
toJSON(matrix.config.runner),
198+
toJSON(format('nodes:{0}', matrix.config['node-count'])),
199+
toJSON(format(
200+
'ci-job-{0}-{1}',
201+
matrix.config.priority,
202+
matrix.config['queue-token']
203+
)),
204+
toJSON(format('ci-attempt-{0}', github.run_attempt))
218205
) ||
219206
format('[{0}]', toJSON(matrix.config.runner))
220207
) }}

‎.github/workflows/speedbench-al.yml‎

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -174,29 +174,16 @@ jobs:
174174
runs-on: >- # zizmor: ignore[self-hosted-runner] GPU Slurm runners by design; workflow_dispatch only
175175
${{ fromJSON(
176176
vars.PRIORITY_SCHEDULER_ENABLED == 'true' &&
177-
(
178-
vars.NODE_SLOT_SCHEDULER_ENABLED == 'true' &&
179-
format(
180-
'["self-hosted",{0},{1},{2},{3}]',
181-
toJSON(inputs.runner),
182-
'"nodes:1"',
183-
toJSON(format(
184-
'ci-job-{0}-{1}',
185-
needs.setup.outputs.priority,
186-
needs.setup.outputs.queue-token
187-
)),
188-
toJSON(format('ci-attempt-{0}', github.run_attempt))
189-
) ||
190-
format(
191-
'["self-hosted",{0},{1},{2}]',
192-
toJSON(inputs.runner),
193-
toJSON(format(
194-
'ci-job-{0}-{1}',
195-
needs.setup.outputs.priority,
196-
needs.setup.outputs.queue-token
197-
)),
198-
toJSON(format('ci-attempt-{0}', github.run_attempt))
199-
)
177+
format(
178+
'["self-hosted",{0},{1},{2},{3}]',
179+
toJSON(inputs.runner),
180+
'"nodes:1"',
181+
toJSON(format(
182+
'ci-job-{0}-{1}',
183+
needs.setup.outputs.priority,
184+
needs.setup.outputs.queue-token
185+
)),
186+
toJSON(format('ci-attempt-{0}', github.run_attempt))
200187
) ||
201188
format('[{0}]', toJSON(inputs.runner))
202189
) }}

‎inferencex-e2e/utils/runner_setup/RUNNER_SETUP.md‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,9 @@ Labels can be edited later on the runners settings page without re-registering.
179179

180180
### Dynamic Slurm node leases
181181

182-
The optional node-slot scheduler performs weighted admission across every job
183-
size in one physical Slurm cluster. A job that needs three nodes adds
182+
When `PRIORITY_SCHEDULER_ENABLED=true`, the priority controller performs
183+
weighted admission across every job size in one physical Slurm cluster. Every
184+
priority-scheduled job carries `nodes:N`, so a job that needs three nodes adds
184185
`nodes:3` to its queued `runs-on` labels. `nodes:N` is request metadata for the
185186
trusted priority controller, not a permanent runner capability label.
186187

@@ -203,10 +204,8 @@ and periodic reconciliation remove orphaned leases. Every managed GPU workflow
203204
must require its unique `ci-job-*` label; a workflow that targets only a generic
204205
hardware label bypasses admission accounting.
205206

206-
Set `NODE_SLOT_SCHEDULER_ENABLED=true` only after the deployed priority
207-
controller supports `nodes:N` and `ci-lease-*`. `PRIORITY_SCHEDULER_ENABLED`
208-
must also remain enabled. If either variable is disabled, workflows omit
209-
`nodes:N` and retain the existing unweighted behavior. The priority score also
207+
If `PRIORITY_SCHEDULER_ENABLED` is disabled, workflows omit `nodes:N`, `ci-job-*`,
208+
and `ci-attempt-*` and target the plain runner label. The priority score also
210209
subtracts `0.001` per additional node so otherwise equal work prefers smaller
211210
allocations without overriding the existing business-priority signals.
212211

0 commit comments

Comments
 (0)