Repository navigation
fix(slm): LLM placement prefers an active row, and loopback needs every client on the LLM node (#20131) - #20435
Conversation
…ry client on the LLM node (#20131)
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 11 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
|
Code review on PR #20435 (head 5ce0a9b): approve. Read only. Placement prefers an active row, GPU first, and is deterministic among several; loopback only when every client is the LLM node. |
Thinking Path
Two gaps left by #19861's fix. The GPU role was picked by name before its status was read, so on the full-inventory path a stopped GPU row beat an active CPU one. And
nodes_by_rolekept the last node per role, so one backend on the LLM node gave loopback to every backend node, including those on other machines.What Changed
services/llm_placement.py:_llm_nodeprefers an active row, GPU before CPU, and falls back to any row, since on a first run every row isnot_installed.Verification
llm_node_reaches_backend_env_19861_test.pypasses locally; only this was run. New: inactive and not_installed GPU rows lose to an active CPU row, both active picks GPU, first-run fallbacks, and a two-backend case in both row orders. No wizard run on a real multi-node install.Worth reviewing:
llm_hostis0.0.0.0, so that works; an install that overrides it to loopback would fail. Not run on a host.Model Used
Claude Opus 5.5
Closes #20131
🤖 Generated with Claude Code