github psqlmaster/gorgona gorgona-v3.1.8
gorgona v3.1.8 / gorgonad v3.5.11 - the client catches up with the sharded server

one hour ago

gorgona v3.1.8 + gorgonad v3.5.11

Headline: the server got multi-core, so the client went and measured itself - and moved the bottleneck back where it belongs. This release ships a session-based send pipeline with a batch queue mode at 5x+ throughput, a listener that never blocks on user commands, parallel peer probing, plus two server fixes found by the new client-side harnesses: a years-old heap overflow on replication floods and a family of conn/core data races (now TSan-clean).

Highlights

  • gorgona send --batch (5019eff, a4c33ee): thousands of time-locked messages over one authenticated session - stdin stream of UNLOCK|EXPIRE|PUBKEY|MESSAGE lines, per-line error attribution, recipient key cache. ~1600 msg/s vs ~300 for repeated one-shot sends on the same bed node.
  • Session helper + crypto caching (ebf0c11): shared connect/AUTH/ACK-drain for all send paths, recipient PEM parsed once per run; ~200 lines of duplicated logic removed from the client.
  • Non-blocking listener (e934ddb, 6bbed68): -e commands run in forked children (timeout feedback to the sender preserved), frames are read incrementally, and the loop wakes exactly when the next time-locked alert unlocks - a 5-second command no longer delays delivery of anything else.
  • Parallel peer probing (239df4e): all candidates get non-blocking connects at once, first success wins - live node in 8 ms instead of ~2 s behind two dead ones; all-dead capped at 2 s total.
  • fix(gorgonad): alerts array growth on replicated inserts (2238321): the per-recipient array was allocated at max_alerts while replicated (REPL) inserts are allowed to overflow to a 1.1x soft limit - a flood of >1000 alerts on one key wrote past the allocation and segfaulted mesh nodes. Repro: 1280 alerts, one key; after the fix 5/5 nodes alive, chains converge 1000/1000 identical.
  • fix(gorgonad): conn/core thread-safety (ead2c67): framing state machine, cross-slot peer scans, mesh tables and the log file now live under locks; found with ThreadSanitizer (44 reports -> zero across the full suite). The floating munmap_chunk crashes in load tests are gone.

Measurement harness (new in test/client/)

client_bench.sh latency matrix, delivery-latency marker probes with a mesh driver, cross-shard ACK-order checker - plus GORGONA_BENCH=1 telemetry in the client.

Packages

Built on Debian 12 (Bookworm), verified by clean-container installs (deb -> bookworm, rpm -> rockylinux:9, OpenWrt via musl SDK).

Don't miss a new gorgona release

NewReleases is sending notifications on new releases.