Repository navigation
Releases
v0.7.0
v0.6.0
What's Changed
- perf(fcgi): read an awaited response through a buffer, as the blocking client does by @lumielis in #4
- perf(spawn_cgi): await the slot's exchange instead of parking a thread by @lumielis in #5
Full Changelog: v0.5.0...v0.6.0
v0.5.0
Highlights
A connection above max_connections no longer retires the listener. The accept loop compared the live connection count against the ceiling and, on refusing, left the count incremented. Every turned-away connection leaked one slot permanently, so a single burst above 512 took a healthy server to zero: observed at active=1276805 against a ceiling of 512, answering nothing thereafter. Present in every release from v0.1.0, and recovery required a restart. Fixed, and max_connections = 0 now means "no ceiling" rather than refusing everybody.
A refusal storm no longer fills the disk. The leak's companion: one WARN per refused connection meant 1,722,771 lines and 143 MB in twelve seconds at concurrency 600. Refusals are now narrated at the first one and once per doubling, and the storm is closed with one line — 39 lines where there were 1.7 million. The exact count is unchanged in rejected, in the metric and in the shutdown line.
The request path is roughly 4x cheaper than 0.4.0 on the paths that matter. Attached workers, socket-transport workers and external FastCGI backends are now awaited on the runtime instead of parking a blocking-pool thread — front-end threads went from 185 to 15 on a 96-child pool. A request that cannot name a script is prepared on the runtime thread rather than handed to a blocking one. spawn_cgi deliberately keeps the blocking path.
Measured on the 12-core reference host, one page, 96 children, concurrency 100:
| backend | before | after |
|---|---|---|
attach → PHP |
63k rps | 93k rps |
external → php-fpm |
44.4k rps | 51.6k rps |
worker (pipe) → PHP |
57k rps | 83k rps |
Also: jemalloc on Unix builds, per-thread random ids instead of a getrandom syscall per request, pooled upstream connections (previously dialled per request), and a cached stream-capability answer that had been taking a lock on every slot for every request.
Upgrading
- If you set
max_connections, re-read it. The default is still512, but a value inflated to work around the leak can come back to a real number. A refused connection is closed with no HTTP response, so a ceiling below your client pool's count shows up as resets, not as backpressure. upstreamconnections are pooled by default. Setidle_timeout_ms = 0to restore one connection per request.- No configuration migration is required; no keys were removed or renamed.
worker on the pipe transport is unchanged; the await applies to socket transports, which need a descriptor a runtime can register.
Fixed
- A refused connection no longer spends the slot it was refused.
max_connections = 0means no ceiling, as documented.- Refusal warnings are rate-limited; the exact count is preserved.
- Worker calls (
kv,lock,jobs) work on awaited connections. - Streamed request bodies to awaited workers no longer fail with
502. - Streamed-request capability is cached per pool instead of locking every slot per request.
- An idle worker's read deadline no longer ends the whole pool at once (PHP SDK
415582e,99ec218).
Documentation
- Operations now covers single-process scaling — linear to 8 of 12 cores, with the 12-core cell bounded by the machine being full rather than by serialisation — the two configuration ceilings that arrive first (
max_connections, child count), runtime-thread sizing, and theLimitNOFILEa large deployment needs.
Full Changelog: v0.4.0...v0.5.0
v0.4.0
v0.3.0
v0.2.0
v0.1.0
Full Changelog: https://github.com/sailantis/volucer/commits/v0.1.0