Skip to content

P5: placement breadth — artifact locality, load, NVLink affinity - #41

Merged
Lothnic merged 1 commit into
mainfrom
p5-placement-breadth
Aug 3, 2026
Merged

P5: placement breadth — artifact locality, load, NVLink affinity#41
Lothnic merged 1 commit into
mainfrom
p5-placement-breadth

Conversation

@Lothnic

@Lothnic Lothnic commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Completes the Phase-5 placement decision on the control side. Pairs with meridian-node PR #12 (the node reports these signals).

What

select_placement(required_vram_bytes, count=1, artifact_digest=None) now consumes the full capacity signals:

  • artifact locality — prefer nodes whose held_artifacts include the digest.
  • load-aware — tie-break by lower running_engines.
  • NVLink affinity — for count>1, the devices must share an NVLink group when groups are declared (_pick_devices).
  • headroom (spread) as the final tie-break.

Preference order: locality > lower load > more headroom. POST /admin/place accepts count and artifact_digest.

Tests

pytest tests/control -q34 passed (+3: locality beats headroom, load tie-break, multi-GPU requires a shared NVLink group); existing placement tests unchanged; ruff + mypy clean.

🤖 Generated with Claude Code

…finity

select_placement now consumes the full capacity signals nodes report: prefers
nodes holding the artifact (locality) > lower running-engine load > more headroom,
and for count>1 requires the devices to share an NVLink group when groups are
declared. POST /admin/place accepts count and artifact_digest. Completes the
Phase-5 placement decision on the control side.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings August 3, 2026 19:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Lothnic
Lothnic merged commit d62bcf5 into main Aug 3, 2026
5 checks passed
@Lothnic
Lothnic deleted the p5-placement-breadth branch August 3, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants