Hi, I would like some help, please. I followed this doc to set auto_stop_machines = 'stop' and min_machines_running = 1, but the machine still stops by itself after a few minutes. Did I miss something?
Thank you in advance.
PS E:\apps\apps\app_name> fly status
App
Name = app_name
Owner = personal
Hostname = app_name.fly.dev
Image = app_name:deployment-01JH86C5BZDA96QBRG3ZZ3REX0
Machines
PROCESS ID VERSION REGION STATE ROLE CHECKS LAST UPDATED
app 683d61dfd9ed18 83 sin stopped 2025-01-10T19:40:52Z
Hi… This can happen if the primary_region is something other than Singapore.
(You can check via fly ssh console -C 'printenv PRIMARY_REGION', after restarting the Machine.)
Aside: With only one Machine in the entire app, you would be better off with auto_stop_machines = 'off', but I’m guessing that this is a minimal test case—rather than your ultimate intended setup…
Aside2: Original version incorrectly said FLY_REGION. (Sorry!)
Thank you for your help. I think it’s Singapore from running your suggeste command
PS E:\apps\apps\app_name> fly ssh console -C 'printenv PRIMARY_REGION'
Connecting to fdaa:a:b5e7:a7b:18a:ba7f:2e77:2... complete
sin
I am just testing the Fly’s scaling flow. On product launch, there will be minimum 1 machine standing by of course. I also want the machines to autoscale from 1 to X. Not sure how difficult the setup that will be but i’ll try
I do wonder if this is a bug that’s happening at the moment. I have recently changed my min_machines_running from 3 to 5. Previously, changes like that did work fine but today it didn’t take effect even with multiple deploys.
happening to me too! I have another project that the same settings does work fine with. The same settings does not work with current project, so I wonder.
(sorry for my English)
==== UPDATE ====
i have set auto_stop_machines = 'off'
and run fly deploy
but the machine still shut itself down in minutes. I wonder if I did something wrong. Any places to look?
Hey folks if you would be conformable sharing the app names you are having difficulty with here please do. If not please send an email to support and let me know!
Hi everyone, we are rolling a fix for this issue. It will complete in 20 minutes, after that, redeploying the apps will sync service definitions and fix the issue. ty!
Your app has two machines and it is configured to only keep one running under low load. In fact, only one of them is running, the message you are getting is for the second machine.
Maybe this is unrelated? I updated the toml file and the machine is continuing to run.
Now it looks like fly is in a loop on longer running processes?
For example, I am pulling 400 records from a third party API and saving them to a DB. Watching to logs all the data is processed but fly just sits. Then after a bit of time, fly reloads/retries(?) b/c the process runs again. I have no retry logic and I am not interacting with the app. I am just watching the logs.
After the second run, I get a Failed to Fetch.
I am using the same db locally and hitting the same API. The processing of the data runs fine locally.