Skip to content

perf(command): avoid release-only configuration hash overhead - #1905

Merged
FlorentinDUBOIS merged 2 commits into
mainfrom
codex/sozu-command-hash-ab
Oct 19, 2026
Merged

FlorentinDUBOIS merged 2 commits into
mainfrom
codex/sozu-command-hash-ab

Conversation

@FlorentinDUBOIS

@FlorentinDUBOIS FlorentinDUBOIS commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Worker orders currently hash the entire configuration for invariant snapshots even when release builds compile out their assertions. Gate each snapshot and its matching assertions together, preserving debug checks and legitimate query hashing.

Controlled local A/B at 50,000 clusters reduced median command latency from about 39.4 ms to 3.6 ms for add, refusal and no-op paths. These are CLI-based local measurements, not production throughput.

Validation on the synchronized tree: nightly fmt; Rust 1.93.1 workspace all-feature build; all-target/all-feature Clippy with warnings denied; workspace tests with default features (3414 passed, 0 failed, 55 ignored, and only the four explicitly authorized local fuzz wrappers filtered). Updated lifecycle documentation and Unreleased notes.

Compile the full configuration hash snapshots and their paired invariant
assertions only for debug builds. Ordinary worker orders and
SetMetricDetail avoid the full-state scan in release builds while query
hashes remain available.

Document the release behavior and retained debug invariant coverage.

Signed-off-by: Florentin Dubois <[email protected]>
Integrate the complete worker-query and TCP frontend fixes and the static
upgrade-probe fixture from main. Preserve the command-hash optimization
and retain both command lifecycle contracts.

Signed-off-by: Florentin Dubois <[email protected]>
@FlorentinDUBOIS FlorentinDUBOIS self-assigned this Oct 19, 2026
@FlorentinDUBOIS
FlorentinDUBOIS merged commit 146cfe5 into main Oct 19, 2026
46 checks passed
@FlorentinDUBOIS
FlorentinDUBOIS deleted the codex/sozu-command-hash-ab branch October 19, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant