Skip to content

bridge: multi-region quote latency (eu-west / us-east / sgp) - #1563

Merged
Flotapponnier merged 1 commit into
devfrom
feat/bridge-multiregion
Jul 27, 2026
Merged

bridge: multi-region quote latency (eu-west / us-east / sgp)#1563
Flotapponnier merged 1 commit into
devfrom
feat/bridge-multiregion

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

What

Upgrades the bridge quote latency bench from a single eu-west probe to 3 simultaneous regions.

Changes

benchmarks/bridge-quote-latency.yml

  • Added region dimension: All regions / EU-West / US-East / Singapore
  • Per-provider regions: query blocks for all 5 bridges (mobula, relay, lifi, debridge, near-intents)
  • Updated descriptions/formula fields to mention 3 regions

infrastructure/monitoring/prometheus/prometheus.yml

  • New bridge-monitor scrape block with 3 Railway internal DNS targets:
    • bridge-monitor-eu.railway.internal:2112
    • bridge-monitor-us.railway.internal:2112
    • bridge-monitor-sgp.railway.internal:2112
  • honor_labels: true so each instance's region= ConstLabel survives aggregation

src/app/bridge/page.tsx

  • Updated copy: "sampled from eu-west" → "3 regions (EU-West, US-East, Singapore)"

Railway services to create (manual step)

Create 3 services in the Dashboard OpenChainBench Railway project from harnesses/bridge-monitor/:

Service name Env vars
bridge-monitor-eu MONITOR_REGION=eu-west
bridge-monitor-us MONITOR_REGION=us-east
bridge-monitor-sgp MONITOR_REGION=sgp

All 3: no WALLET_EVM_PRIVATE_KEY / WALLET_SOL_PRIVATE_KEY, EXECUTION_MODE unset (defaults to dry-run). Bridge API keys optional (unkeyed mode works, just rate-limited).

After creating services → redeploy Prometheus so it picks up the new scrape targets.

Safety

Zero execution risk: without wallet keys CanExecute()=false. Without EXECUTION_MODE=production the scheduler never starts. See PR description of #1557 for full guard analysis.

…t/us-east/sgp)

- bridge-quote-latency.yml: add region dimension + per-region prom queries for all 5 bridges
- prometheus.yml: add bridge-monitor 3-region scrape block (honor_labels, internal DNS)
- /bridge page: update copy from single eu-west to 3-region description
@Flotapponnier
Flotapponnier merged commit 6ce8c97 into dev Jul 27, 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