2 ms·
Any way to run Fly with multiple locations at the same time? For context, I want to build a simple uptime service which tells me when my website is down, but fo
by satvikpendem 4y ago
Any way to run Fly with multiple locations at the same time? For context, I want to build a simple uptime service which tells me when my website is down, but for that I don't want to use a single VPS, I want to load balance between several locations and servers in case any one of them goes down.
Am I supposed to be looking for serverless deployment? Deploy a master/parent version of the app on one main VPS then several sub versions on other VPSes distributed around?
- tptacek 4y agoYou can scale a Fly app to an essentially arbitrary number of instances (`scale count x`), and deploy in any number of regions (`regions set nrt syd sin fra`). We'll load balance between instances in nearby regions.
- satvikpendem 4y agoThanks Thomas, glad to see you here. For the regions, will I be able to know programmatically in which region a particular instance of the app is running? For reference, I want the users of my service to know that we tested their site in regions A, B and C, and that it's currently up in A and B but down in C and show them that in the web dashboard.
- tptacek 4y agoYep, it's in the environment: `FLY_REGION`.
- satvikpendem 4y agoThanks, appreciate it! By the way, did you start at Fly recently? I seem to recall you had your own company or something like that before.
- tptacek 4y agoI've been at Fly.io since early summer 2020. I've had a couple of companies before that. None of them as fun as this one! :)