Repository navigation
Fix queue group routing, waking and errors across nodes (#111) - #113
Merged
Merged
Conversation
…s on a name conflict (#111) Concurrent wakes all passed the status check, because status stays "sleeping" until the container is up. On Docker the loser's 409 force-removed the winner's live container; bare-metal the loser failed and briefly marked it stopped.
#111) An alias usually names no file, so a request for a sleeping or starting member died as "model not found", or woke an unrelated file that substring-matched. Members now rank healthy > starting > sleeping, and the wake runs outside the global lock. Stopping, stopped and failed wakes return typed 503s, and a forwarding peer is told to try its next member. Nodes advertise alias_wake.
A sleeping member's gate reads empty, so it won load ties and any backlog, and queued work migrated onto it as free capacity. Load reports now count healthy, starting and sleeping members and take free slots from healthy members only. Dispatch and evacuation try awake members first. Older peers are skipped unless their snapshot shows a healthy member. Must ship with the eager wake in PR3.
…ed (#111) With sleepers ranked last and awake gates queueing rather than 429ing, a sleeper only saw traffic after a whole queue overflowed. A pass beside the heartbeat now wakes one once every healthy member in the group is full with work queued for eager_wake_polls polls in a row (default 3). Only the lowest node id holding a sleeper wakes, at most one per group per pass, and only if it fits free VRAM.
…111) Listings and routing now share one rule, so groups on view-only and offline peers are no longer advertised. A peer that fails a load probe stays routable from its snapshot but ranks last. When no node can take a request, the client gets a 429 or 503 naming each node and why, not "model not found". /v1/embeddings now routes across the cluster. Documents queue group behavior in CLUSTERING.md.
nullata
marked this pull request as ready for review
November 1, 2026 16:41
nullata
marked this pull request as draft
November 1, 2026 16:45
nullata
marked this pull request as ready for review
November 1, 2026 23:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #111.
Draft: needs a run on a real multi-node cluster with real Docker before merging. So far this has only been tested with mocks and fake peers (1205 unit tests).
What changes
eager_wake_enabledandeager_wake_polls.429or503naming each node and why. A node that can't serve a forwarded request tells the sender to try the next member./v1/embeddingsroutes across nodes.Check on the real cluster
Known gap
If a loading model never becomes ready, the waiting request still gets a generic
500and doesn't try another node.Not included
The
RELEASENOTES.mdentry and translated docs.