Repository navigation
Merge main into next: minimum turn needs a request (#338) - #339
Merged
Merged
Conversation
… idle Busy said "known idle" for any engine that answered, even when its reading had no way to show a running request. The NInfer build on aphotic answers /metrics with only ninfer_* counters and serves no /slots, so it read idle while it served, and so did Ollama. A juggle hands an idle holder's card over at once, and the minimum-turn change that follows needs a truthful idle. Each reader now sets EngineMetrics.InFlightReported when its reading carries a processing or waiting gauge, a /slots list or a job queue. llama-swap reports only when every ready model on it does.
A lease's minimum turn ran from the grant. When a health probe or a warm-up started an engine, the lease kept the card for its whole turn although nobody sent it a request. On aphotic a HADAL warm-up started NInfer, drained Strata mid-session, and Strata's next request waited out NInfer's five minutes. Each tick the broker reads whether an active lease's engine is busy. A lease read idle with no busy reading since the grant has no turn to keep, and the status shows none. With no reading (no watcher, an engine still loading, an engine with no in-flight figure) the turn holds as before.
fix(broker): a minimum turn protects only a lease that served a request
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.
Brings #338 from main into next. The tree matches main plus the earlier next merge commit. The CHANGELOG lines sit under Unreleased. The full proof passes.