-
v0.10.4-rc.8
Pre-Releasereleased this
2026-09-30 03:05:13 +02:00 | 620 commits to main since this releaseChanges since v0.10.3, published as release candidates (v0.10.4-rc.N) until
there are enough for v0.10.4.Restarting replicas
llmgw ctl restart REPLICA... | --model M | --allreplaces replicas with new
ones. Each replacement is started beside the replica it replaces, which keeps
serving until the new one is ready; replicas of one model go one at a time.
Where no second copy fits anywhere, the old replica is stopped after the drain
grace period and the new one starts in its place. This is how running engines
pick up the keys introduced in v0.10.3, an edited profile, or a new engine
version.A model that keeps failing is parked, and everybody is told
A model whose replicas failed at every start was retried forever: kev-0.5b,
whose architecture the nodes' llama.cpp did not know, was started 155 times in
eight hours. After five failures in a row a model is now parked — not placed
again until its definition changes orllmgw ctl retry MODELis run — and
ctl status,ctl modelsand the admin API say so with the last error.A request for a model that will not come up — parked, or fitting on no node —
is answered at once with the reason, instead of "the model is loading; retry
shortly", which a client would retry forever. Each request still makes the
control plane try placing it afresh, so a model that fits once room is made is
not refused on an old answer. "no placement for model" is logged when its
reason changes or every ten minutes, not on every pass: it was 250 identical
lines in two days for one model.Metrics and alerts for what goes wrong
New series:
llmgw_model_replicas_desired,llmgw_model_start_failures,
llmgw_model_parked,llmgw_model_unplaceable,llmgw_node_engine_install,
llmgw_control_plane_leaderandllmgw_certificate_expiry_timestamp_seconds.
llmgw_model_replicas_readyis now published at 0 for every model that should
be running; it was published only while a replica was ready, so
ModelHasNothingServing could never fire. New alerts: ModelParked,
ModelFailingToStart, ModelCannotBePlaced, EngineInstallFailed,
ControlPlaneLeadership, CertificateExpiresSoon and CertificateExpiresVerySoon.ctl statuscounts a model against the replicas it should have now rather
than its minimum, so an on-demand model that was asked for and fitted nowhere
no longer reads as satisfied.Backups
llmgw server backupwrites the store and/etc/llmgw— configuration,
secrets, and the certificate authority's key — to one archive readable by root
only, keeping the newest 14.deploy/systemd/llmgw-backup.timerruns it
nightly. The control plane publishes the newest archive's time as
llmgw_backup_last_success_timestamp_seconds, and BackupTooOld fires when it is
more than 26 hours old or there has never been one. docs/install.md now says how
to restore, including why running engines survive it: the engine-key secret
comes back with the store.A model from the registry in one command
llmgw ctl model serve OWNER/REPOtakes a model from the registry to a replica
that answers. It picks the GGUF file (--quant, Q4_K_M by default), has the
mirror fetch it and checks what arrived against the registry's published
sha256, checks that the nodes' llama.cpp can load it, sizes its memory from its
header, adds it to the catalog, waits for a replica — stopping early with the
reason if it fits nowhere or keeps failing — and asks it to say hello. Each step
is shown as it happens. It runs in the control plane as a job, so a download of
hours does not depend on a terminal staying open.--on-demandadds it without
starting a replica.Upgrading from one command
sudo llmgw ctl upgrade VERSION, run on the control plane, upgrades that
machine and then every node in turn. Each agent is told the version over its
existing stream, fetches the release for its own platform, checks it against
the release's checksums, keeps the old binary beside the new and restarts,
while its engines keep serving. A node that does not come back on the new
version, ready, with its replicas, stops the upgrade before the next one.
Running it again resumes. Agents from before this have to be moved by hand
once.Following a request
Every response carries
X-Request-Id— the client's own when it sends a plain
one, otherwise one the gateway makes — and the engine receives it too. One
access log line per request records it with the model asked for and served,
the replica, status, time queued, time to the first token, total time,
tokens, and the key, project and user. Usage records keep the id, replica,
queue time and time to first token, andllmgw ctl request IDreads one back:
the answer to "why was this slow?".Rate-limit headers
Responses carry OpenAI's
x-ratelimit-limit-*,x-ratelimit-remaining-*and
x-ratelimit-reset-*for requests and tokens, from whichever level of the
tenancy tree will refuse first, so SDKs and editors can slow down before they
are refused.Memory sized from the model
The mirror's serve form sizes a llama.cpp model's memory from its GGUF header:
weights, plus the KV cache for the context pool from its layers, KV heads and
head width, plus the engine's own. At a 16k pool that cache ranges from 0.44 GB
to 5.25 GB across the models on the live mirror, which the old "weights plus
half again plus two" could not see.Security
- Alertmanager answered anyone on the network, including requests to
silence alerts. The monitoring README now binds it to loopback, where
Prometheus beside it is its only client. - Login and signup could be made to use gigabytes. Each attempt hashes with
64 MiB of argon2, with no bound on how many ran at once, and the per-address
throttle grew by one entry per address tried. Hashes now run a few at a time
and the rest wait; the throttle expires old entries, and when it is still
full it refuses new addresses rather than dropping live ones — which would
have let a flood of made-up addresses reset the throttle on a real one. - Any key holder could grow Prometheus without bound by asking for made-up
model names, each of which became a metric label. Requests are counted under
the catalog's name for their model, or "unknown". - A SQLite backup left a full copy of the store readable by local users
while it ran. The snapshot is now made in a private directory, and
llmgw-backup.service setsUMask=0077. - An engine archive could write outside its directory through chained
links. Archives are unpacked throughos.Root, and a link may only point
at a file beside it. Every llama.cpp b10991 archive, CPU and CUDA, already
follows that rule.
Fixes
- Tests that slept a fixed time and then asserted now wait for their
condition. They are the likeliest cause of CI's intermittent failures on a
loaded runner. ctlreported a change the API had queued (202 Accepted) as an error, as
ctl restartdid on its first real use.
Releases
Small fixes are published as release candidates of the next version —
v0.10.4-rc.1, rc.2 — which sort after v0.10.3 and before v0.10.4. Their release
notes come from this section, and they are marked as pre-releases. Onboarding
treats a release candidate as a release and downloads it.Downloads
- Alertmanager answered anyone on the network, including requests to