broker: choose Sydney (AMD sizes) or San Francisco 2 (Regular sizes) — DigitalOcean withdrew the Regular sizes from syd1 (GOTCHAS #420) #2198

Merged
ben merged 2 commits from fix/broker-syd1-amd-sizes into main 2026-11-18 04:30:26 +00:00
Owner

The TuIA re-founding failed at "Rent the gateway server": DigitalOcean refused: Size is not available in this region. DigitalOcean no longer sells s-2vcpu-4gb or s-4vcpu-8gb in syd1. It still sells their -amd versions there (same specs, list $28 / $56), and still sells the Regular sizes in sfo2, the only US region that does.

Ben asked to be able to choose between Sydney on AMD and the US on the Regular sizes.

Change

  • New RentalConfig.RegionSizes in broker/internal/broker/rentals.go: region → offered size → the size actually rented there. Rent and RentDevice apply it after resolving the region and size.
    • The offer is unchanged. The app still shows "4 GB" and "8 GB" under their Regular slugs, and still validates against them.
    • The droplet is created at the region's size, and the rental records that size.
  • broker/cmd/broker/main.go: gatewayRegionSizes maps syd1 to -amd. sfo2 has no entry, so it rents the Regular sizes.
  • scripts/gateway-image/build.sh:
    • the build droplet uses s-2vcpu-4gb-amd;
    • new step 5b copies each new snapshot to IDSS_GATEWAY_IMAGE_REGIONS (default sfo2). The broker offers only the regions the newest snapshot is in, so without this the US option would disappear at the next rebuild.
  • The current snapshot has been copied to sfo2 by hand, so the region picker offers Sydney 1 and San Francisco 2 once this is deployed.
  • GOTCHAS #420 and a STATUS entry.

Tests

  • New rentals_regionsize_test.go, written to fail first: syd1 rents -amd, sfo2 rents the Regular size, and a device rent is mapped too.
  • cmd/broker/presets_test.go: the default size is offered, and every preset has a syd1 mapping.
  • go test ./... passes in broker/, and the gateway-image script tests pass.

The app reads sizes and regions from the live offer, so it doesn't need a rebuild. After merge, CI publishes the broker and deploys it through the installer fixed in #2197.

🤖 Generated with Claude Code

The TuIA re-founding failed at "Rent the gateway server": `DigitalOcean refused: Size is not available in this region`. DigitalOcean no longer sells `s-2vcpu-4gb` or `s-4vcpu-8gb` in syd1. It still sells their `-amd` versions there (same specs, list $28 / $56), and still sells the Regular sizes in **sfo2**, the only US region that does. Ben asked to be able to choose between **Sydney on AMD** and **the US on the Regular sizes**. **Change** - New `RentalConfig.RegionSizes` in `broker/internal/broker/rentals.go`: region → offered size → the size actually rented there. `Rent` and `RentDevice` apply it after resolving the region and size. - The offer is unchanged. The app still shows "4 GB" and "8 GB" under their Regular slugs, and still validates against them. - The droplet is created at the region's size, and the rental records that size. - `broker/cmd/broker/main.go`: `gatewayRegionSizes` maps syd1 to `-amd`. sfo2 has no entry, so it rents the Regular sizes. - `scripts/gateway-image/build.sh`: - the build droplet uses `s-2vcpu-4gb-amd`; - new step 5b copies each new snapshot to `IDSS_GATEWAY_IMAGE_REGIONS` (default sfo2). The broker offers only the regions the newest snapshot is in, so without this the US option would disappear at the next rebuild. - The current snapshot has been copied to sfo2 by hand, so the region picker offers **Sydney 1** and **San Francisco 2** once this is deployed. - GOTCHAS #420 and a STATUS entry. **Tests** - New `rentals_regionsize_test.go`, written to fail first: syd1 rents `-amd`, sfo2 rents the Regular size, and a device rent is mapped too. - `cmd/broker/presets_test.go`: the default size is offered, and every preset has a syd1 mapping. - `go test ./...` passes in `broker/`, and the gateway-image script tests pass. The app reads sizes and regions from the live offer, so it doesn't need a rebuild. After merge, CI publishes the broker and deploys it through the installer fixed in #2197. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
broker: rent the -amd sizes — DigitalOcean withdrew s-2vcpu-4gb / s-4vcpu-8gb from syd1 (GOTCHAS #420)
Some checks failed
ci / publish (pull_request) Has been cancelled
ci / publish-broker (pull_request) Has been cancelled
ci / deploy-broker (pull_request) Has been cancelled
ci / seam (pull_request) Has been cancelled
4a3ac50c06
Every rented founding died at the rent with 'Size is not available in this
region'. The -amd variants have the same specs and are sold in syd1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
broker: the rented size is per region — syd1 rents the -amd twin, sfo2 the Regular size; the gateway snapshot is copied to sfo2 (GOTCHAS #420)
All checks were successful
ci / seam (pull_request) Successful in 15m4s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
de2e421e01
Ben asked to pick between Sydney (AMD) and the US (Regular). RentalConfig.RegionSizes
maps region -> offered slug -> rented slug; the offer keeps the Regular slugs. The
image build copies each new snapshot to sfo2 so the region picker offers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ben changed title from broker: rent the -amd sizes — DigitalOcean withdrew s-2vcpu-4gb / s-4vcpu-8gb from syd1 (GOTCHAS #420) to broker: choose Sydney (AMD sizes) or San Francisco 2 (Regular sizes) — DigitalOcean withdrew the Regular sizes from syd1 (GOTCHAS #420) 2026-11-18 04:22:44 +00:00
ben merged commit 87e58e7388 into main 2026-11-18 04:30:26 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss!2198
No description provided.