Repository navigation
What's in this release
Olla is a high-performance proxy and load balancer for LLM infrastructure.
Quick Start
# Docker
docker pull ghcr.io/thushan/olla:v0.2.0
# Binary (see assets below)
./olla --config config.yamlWhat's New in v0.2.0
Another large release (codebase wise) as we finally moved to go1.27 (and hope to move to go1.28 in March), it required a fair amount of modernisation and this has brought some performance improvements (less alocations) thanks to Go 1.27 (which we couldn't get verified before v0.1.0).
Other notable changes is to address backend failover reliability. A backend that drops the connection, goes quiet mid-stream or terminates halfway through a reply is now handled the way you'd expect: we fail over where we can, and where we can't, the client gets a clear error instead of something that looks like a finished response. We've also added Rapid-MLX (@raullenchai) and tightened up endpoint URL validation.
There are lots of things to be aware of, documented in our Olla v0.2.0 Release Article or see the Release Notes.
Behaviour Changes
- Endpoint URLs are validated strictly.
urlmust be an absolutehttp://orhttps://URL, solocalhost:11434without a scheme now fails at startup.url,health_check_urlandmodel_urlmust not contain@or%40; credentials belong in the endpoint'sauthblock.--validate-configreports all of these (#281). - Unbracketed IPv6 endpoint URLs are rejected. Go 1.26 made
net/urlstrict, sohttp://::1:11434no longer parses. Usehttp://[::1]:11434(#280). - macOS binaries need macOS 13 or later, because Go 1.27 dropped macOS 12. Linux, FreeBSD and Windows are unchanged (#280).
- Building from source needs Go 1.27.
go.moddeclaresgo 1.27.0withtoolchain go1.27.4(#280). - A backend dying mid-stream now ends the response with an error. The client gets an error event in the stream's own format (OpenAI SSE, Anthropic
event: erroror an Ollama NDJSON line), then the connection is dropped. Clients that treated a clean end of stream as success will see a read error on truncated replies (#274). - Auto-detection needs the server to identify itself. With
type: auto, llama.cpp, vLLM, oMLX and Rapid-MLX are only detected when/v1/modelsreports a matchingowned_by; anything else isopenai-compatible. Settypeexplicitly if a backend lost its detected type (#271). EOFbefore the first byte now fails over. With the defaultproxy.retry.non_idempotent: true, a POST can now run on a second backend. Set it tofalseif a prompt running twice matters more than availability (#273).- Streaming Anthropic translation returns
502when every backend fails before the first byte, instead of200with an empty stream (#274). - Duplicate endpoint URLs now log a warning naming both endpoints. Only one ever registered (#277).
Reliability
- An idle keep-alive close from vLLM or SGLang no longer marks a healthy backend offline or charges its circuit breaker (#277).
http: server closed idle connectionon a reused connection now fails over instead of returning502(#277).- The Olla engine enforces
proxy.read_timeouton a backend that goes silent mid-stream, rather than waiting forever (#277). - Client cancels and client timeouts no longer open the circuit breaker or count as failed requests, and a cancelled half-open probe frees its slot (#275).
- A translator panic mid-stream drops the connection instead of ending the stream cleanly, and is logged as a failure (#277).
- Provider-prefix
/v1/messagesroutes send Anthropic-shaped mid-stream errors (#277).
Backends and Routing
- New Rapid-MLX backend for Apple Silicon, with a
rapid-mlxprofile, the/olla/rapid-mlx/prefix and native Anthropic passthrough. Thanks to @raullenchai (#271). type: autoendpoints loaded from config now discover their models. Previously vLLM, llama.cpp, oMLX and generic servers could be detected as Ollama with no models (#277).- Auto-detection with an explicit
model_urlno longer labels OpenAI-style servers as LM Studio (#277). - Model aliases match regardless of case when unification is on, and case variants share a sticky session. Thanks to @wsj040303 (#270).
- A backend that closes the connection before replying now fails over. Thanks to @mikemikimike (#273).
server.hostaccepts a bare IPv6 address such as::. Raised by @sigil-03 in #145 (#278).
Build and Tooling
- Go 1.27, with updated dependencies (#280). Release images are built with GoReleaser's
dockers_v2; the published tags are unchanged (#280). - The codebase uses Go 1.27 idioms, and
make lintnow enforcesmodernize,usetestingand SA1029. There is no behaviour change (#284). make lintandmake aligninstall golangci-lint and betteralign into a repo-local.bin/at pinned versions (#283).
Full detail, with the links for each change, is in the v0.2.0 release notes.
Acknowledgements
- @raullenchai - added the Rapid-MLX backend (#271).
- @wsj040303 - fixed alias matching with unification (#270).
- @mikemikimike - made a connection closed before the reply fail over (#273).
- @sigil-03 - raised the bare IPv6
server.hostbind failure (#145).
Full Changelog: v0.1.0...v0.2.0