Deploying in all regions and directing users based on location

You can pass max per region to the scale command: fly scale count 15 --max-per-region=1. Just make sure you have enough regions enabled for the count you’re requesting. You’ll also need to use fly deploy --strategy rolling with that setting.

https://debug.fly.dev will have a better look at what routing is doing for you. You’ll see a Fly-Region header that indicates the region we saw your connection in.

2 Likes