Skip to content

ws-head-latency: multi-region (harness region label + spec region tabs)#1198

Merged
Flotapponnier merged 2 commits into
devfrom
feat/ws-head-latency-multi-region
Jul 16, 2026
Merged

ws-head-latency: multi-region (harness region label + spec region tabs)#1198
Flotapponnier merged 2 commits into
devfrom
feat/ws-head-latency-multi-region

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Two commits. Harness patch adds region ConstLabel via OCB_REGION or RAILWAY_REPLICA_REGION env, eu-west default. Spec changes add dimensions.region tabs + regions arrays on 3 providers per spec (081, 087, 088). Follow-up on your end: create Railway ws-head-latency service with 3 replicas (us-east, eu-west, sgp), set OCB_REGION on each. bun run validate: 78 specs valid. go build passes.

Florent Tapponnier added 2 commits July 16, 2026 13:09
Adds a static region ConstLabel to every ws-head-latency metric,
bound at process startup from OCB_REGION (preferred) or
RAILWAY_REPLICA_REGION (Railway auto-set), with eu-west fallback
matching the historical single-vantage Paris VPS deployment.

No observation site needs to change: the label is baked into every
counter, gauge and histogram at registration, so all existing
WithLabelValues(provider, chain) calls stay identical.

Adds railway.toml so Railway can build the harness from Dockerfile
with a /health check, matching the rpc-capabilities service layout.

Follow-up: create the Railway ws-head-latency service with 3
replicas (us-east, eu-west, sgp) and OCB_REGION set on each, then
decommission or leave the Paris VPS container as a 4th vantage.
Adds `dimensions.region` block + `rank_matrix_query` on provider,
region + per-provider `regions:` sub-arrays with region-scoped
queries on the 3 ws-head-latency specs, following the polkadot-rpc
pattern.

Depends on the harness region label change (previous commit): every
metric now carries a region ConstLabel so the region-scoped
histogram queries return values as soon as multi-region replicas
publish. Until Railway 3-replica deploy lands, only region=eu-west
has data and the other tabs render empty; the All regions tab keeps
working because the aggregate query is unscoped by region.
@Flotapponnier
Flotapponnier merged commit 25a495a into dev Jul 16, 2026
@Flotapponnier
Flotapponnier deleted the feat/ws-head-latency-multi-region branch July 16, 2026 11:11
Flotapponnier added a commit that referenced this pull request Jul 16, 2026
…on support to main (#1199)

Consolidates 3 dev merges (#1170 harness + #1196 per-chain benches + #1198 multi-region) so main matches dev on the ws-head-latency cluster:

  * benchmarks/ws-head-latency.yml: parent bench 081 (Ethereum)
  * benchmarks/ws-head-latency-base.yml: bench 087, adds regions arrays
  * benchmarks/ws-head-latency-solana.yml: bench 088, adds regions arrays
  * harnesses/ws-head-latency/: full harness (was dev only), including
    region ConstLabel from OCB_REGION or RAILWAY_REPLICA_REGION
  * railway.toml: Railway build config so the service can be created

After merge, create the Railway ws-head-latency service with 3 replicas
(us-east, eu-west, sgp), set OCB_REGION on each. Railway auto-builds
from main, metrics start flowing per region.

Co-authored-by: Florent Tapponnier <contact@mobula.io>
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