I’m confused about how regions work for one of my apps. I had initially set the region to iad, but checked in on our usage and noticed we have outbound from all over the world. There was a weird event that occurred where I accidentally tried to deploy another app’s code to this app and all the environment variables got wiped out, so maybe that included the FLY_REGION
variable?
Currently, I do not have FLY_REGION
manually set (is this something I can do?), and when I run fly regions list
I see the following:
Region Pool:
iad
Backup Region:
ewr
vin
However, when I run fly status
I see:
App
Name = APP_NAME
Owner = OWNER
Version = 60
Status = running
Hostname = APP_NAME.fly.dev
Instances
ID TASK VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED
1b4a7627 web 60 mad run running 2 total, 2 passing 4 2021-10-06T19:11:18Z
2bc2789c web 60 sin run running 2 total, 2 passing 0 2021-10-06T19:09:57Z
82adf777 sidekiq 60 gru run running 0 2021-10-06T19:09:57Z
Similarly, when I run fly ssh console
and inspect the FLY_REGION
env var, it returns sin. So, I’m a little confused how region scaling stuff works. Additionally, I’ve been trying to understand why uncached responses are taking a long time, and now it makes sense because our database is running in us-east-1.
I’ve read the docs on regions but would really appreciate anything that clearly explains how region scaling works. Thanks.