Skip to content

Run registry benchmarks from more than one region (North America + Europe) #230

Todo
0 of 3 issues completed

Description

@darcyclarke

📋 Description

Run the registry-* benchmarks from more than one region: North America (na) and Europe (eu). Each region gets a runner pinned to it, each job records where it actually ran, and the site shows which region a reader is looking at.

🎯 Problem Statement

Registry benchmarks measure the network between the runner and each registry as much as the registry itself, so where the runner sits is part of the result. Today every registry job runs on a GitHub-hosted ubuntu-24.04-arm runner. We can't choose where that runner is, and we don't record it. That penalises any registry whose origin isn't in the US.

Cloudsmith prompted this. On our Pro plan every repository is stored in their default region, Dublin, and custom storage regions need Ultra or Enterprise. From a US runner, every Cloudsmith request crosses the Atlantic, and nothing on our plan can change that. JFrog, by contrast, lets you choose a region when the instance is created.

GitHub-hosted runners can't fix this:

  • Standard runners can't be pinned to a region. Since 2026-10-28, eligible Linux jobs can also land on AWS, not just Azure (changelog).
  • Larger runners with Azure private networking can be pinned, but arm64 is only offered in US regions ([docs](https://docs.github.com/en/organizations/managing-organization-settings/about-azure-private-networking-for-github-hosted-runners-in-your-organization)).

💡 Proposed Solution

  • Only the registry-* variations run once per region. Package-manager and task-runner jobs are unchanged.
  • Regions. Each region is pinned where most of that continent's compute and traffic already is, not next to any one registry:
    • na: US East (N. Virginia).
    • eu: Frankfurt. Not Dublin, which would sit next to Cloudsmith's origin.
    • apac can be added the same way later.
  • Same machine shape in every region, so the region is the only variable.
  • Publishing. na keeps the unsuffixed file names (next-registry-clean.json), so the existing series continues. Other regions use @<region>, e.g. next-registry-clean@eu.json.
  • Recording. Each job records where it actually ran (cloud and region from instance metadata, the Cloudflare colo, and per-registry first byte and CDN PoP; no IPs). These records are gathered into /{date}/regions.json.
  • Site. Registry pages take ?region=eu. They get a "Measured from" switcher and a "Registries under test" table listing each registry's plan, where it serves from, and whether that plan can choose a region. The Markdown twins, JSON API and MCP tools take region too.

The full write-up is in docs/METHODOLOGY.md#regions in the PR.

Work

The code is inert until REGISTRY_RUNNERS is set. Until then only na runs, on the same runner as today, and each night logs a warning that eu was skipped.


Generated by Claude Code

Sub-issues

Sub-issues

0 of 3 Issues completed
Loading 3 sub-issues

Metadata

Metadata

Assignees

Labels

enhancement

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions