Dynamo · main checked Nov 9, 2026
Global Router
Route across pools, then schedule within a pool. HTTP at the global level; KV-aware worker selection stays local.
Click a pool to pick where it goes.■ global level ■ pool level ■ KV & load
Next → pool identity, readiness and load
Pool signals
What the global router knows about a pool
PoolRelay aggregates readiness and load. Worker placement stays local; active Relay replicas are counted once.
Inventory illustration · current affinity uses region + session pins + headroom, not block-overlap ranking.
Current implementation · pool selection
Prefer the session’s pool; move for headroom
Round-robin is the default. Select affinity to use region, load and session-to-pool pins.
Pins: memory by default · optional DynamoDB shares soft affinity across replicas/restarts. Pool errors pass through; no automatic retry.
Click a pool to change its load · illustrative policy model; same-region pools have equal distance.
Current implementation · discovery
A separate service lists pools and routers
Global Discovery Service exposes HTTP registration and listing APIs, backed by leased records.
A discovered candidate still needs a usable live Relay view when Relay state is configured.
Current implementation · replicas & connections
Serving and telemetry have separate paths
Global Frontend opens HTTP serving connections. Telemetry can be initiated from either side.
Active-active views are deduplicated · Relay count and frontend count need not match.
Current implementation · failure handling
Discovery membership is not routing readiness
A cached candidate needs a live Ready Relay view. Unknown load is full, not idle.
Models discovery + Relay-configured routing. Static pools without Relay state have different eligibility behavior.
Teaching model: lease expiry and telemetry loss are separate events; no timing defaults implied.
Future design · illustrative simulation
Future: continue an answer across pools
Not implemented in current Global Frontend. Today, unreachable pools return 503; pool responses pass through.
Last request the global frontend sent
Required: token/replay contract, compatible destination, retry/deadline budget and re-prefill. No KV transfer modeled.
Future design · illustrative simulation
Future: coordinate a whole pool’s drain
Proposed global lifecycle contract. Existing local shutdown does not provide cross-pool drain and retry.
Deadline
Simulation only · A → B retry and coordinated reporting need global integration; current forwarding does not retry.
Implementation & direction · as of Nov 9, 2026
Implementation, validation and next steps
Upstream main is a code baseline. It is not a GA or release-packaging guarantee.
Implemented on main
- HTTP request/response forwarding
- Round-robin, least-in-flight, affinity
- Optional DynamoDB soft affinity
- GDS: leases, memory / DynamoDB
- Active-active Relay views; both connection directions
Validate per deployment
- Release/image availability
- Cloud networking and storage
- Failure and recovery behavior
- Latency, load and affinity metrics
- Cloud-specific dependencies need separate validation
Direction / future
- Explore prefix-derived affinity
- Consolidate global components with Stargate
- Cross-pool token continuation
- Coordinated drain and retry
- Cross-pool P/D needs a KV-transfer contract
Keep global and local services independently deployable. Packaging may share images/executables; optional in-process deployment can coexist.
Choose the pool globally. Keep worker scheduling local. Make the implementation boundary explicit.