fix: instance-aware frontline routing to prevent 503s in regions without instances by Flo4604 · Pull Request #5267 · unkeyed/unkey

This was referenced

Mar 18, 2026

@Flo4604

…out instances

Frontline was routing to local sentinels without checking if the region had running
instances, causing 503s. Now the router checks instance presence before selecting a
sentinel, and falls back to a region that actually has running instances.

Also consolidates routing logic: handler is now a thin 3-line caller, router owns
all decisions via a single Route() call, and proxy dispatches via Forward().

@Flo4604

@Flo4604 Flo4604 marked this pull request as ready for review

March 23, 2026 12:09

chronark

coderabbitai[bot]

chronark

@Flo4604

coderabbitai[bot]

@Flo4604

ogzhanolguncu

chronark

@Flo4604 Flo4604 deleted the instance-aware-routing branch

March 23, 2026 16:51