Skip to content

cherry: ws-head-latency sub-ms histogram floor + keyed slots (#1225) - #1226

Merged
Flotapponnier merged 1 commit into
mainfrom
chore/cherry-ws-head-latency-buckets-main
Jul 16, 2026
Merged

cherry: ws-head-latency sub-ms histogram floor + keyed slots (#1225)#1226
Flotapponnier merged 1 commit into
mainfrom
chore/cherry-ws-head-latency-buckets-main

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Cherry-pick of #1225 (currently on dev only) onto main so the fix ships to production Railway.

Why not merge dev → main

Dev is 20+ commits and ~6400 LOC ahead of main. The ws-head-latency bucket fix is a targeted correction (leader p50 collapses to ~2.5ms interpolation artifact) that shouldn't wait behind the broader dev backlog. Cherry lands only the bench-critical change.

What deploys after merge

Railway auto-redeploys 3 services from main:

  • ws-head-latency-us
  • ws-head-latency-eu
  • ws-head-latency-sgp

Post-merge

Purge ws_head_lag_milliseconds_bucket from ocb-prom TSDB to drop the stale [0,5ms]-floored series (they'd collide with the new fine buckets and keep producing the 2.5ms artifact until they age out):

curl -sX POST \
  "http://ocb-prom:9090/api/v1/admin/tsdb/delete_series?match[]=ws_head_lag_milliseconds_bucket"
curl -sX POST http://ocb-prom:9090/api/v1/admin/tsdb/clean_tombstones

Test plan

  • Cherry applied clean (no conflicts)
  • After merge: Railway builds succeed for 3 services, /metrics on each shows new bucket boundaries
  • TSDB purged, sparklines resolve to real sub-5ms values within 1-2h

…#1225)

Fix the leader-collapses-to-2.5ms artifact: histogram_quantile on a
[0,5ms] first bucket interpolates every winner's p50 to ~2.5ms
(chain-independent). Replace with a 0.5ms floor climbing to 10s so
sub-ms wins actually resolve on Solana (~400ms slots) and Base (2s).

Add keyed provider slots for Base (Alchemy/Infura/Chainstack/QuickNode)
and Solana (Alchemy/Chainstack/Helius/QuickNode) so the cohort can
extend beyond keyless once contributor keys are wired. Keyless tier
is saturated on all three chains (audit failed: Ankr, Blast, LlamaRPC,
BlockPI, 1RPC, NodeReal, Omniatech, base.org, extrnode, chainstack-
public — none accepted a keyless WSS handshake as of 2026-07).

Co-authored-by: Florent Tapponnier <contact@mobula.io>
@Flotapponnier
Flotapponnier merged commit da032f9 into main Jul 16, 2026
1 check failed
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