If anybody gets here with the same issue…
I’ve just found these links:
Today I deploy my app many times, deployment succeed, but after few minutes, monitor print the following information. I try to change region, but dosen’t work, What should I do?
2023-04-18T06:36:17.032 app[6e82e25c206987] waw [info] Sending signal SIGINT to main child process w/ PID 513
2023-04-18T06:36:17.040 proxy [6e82e25c206987] waw [info] Downscaling app aabb123 in region waw. Automatically stopping machine 6e82e25c206987. 1 instance is running but has no load
2023-04-18T06:36:22.097 ap…
We’ve introduced a new feature to automatically start/stop instances. When enabled, the proxy will scale instances of your app up/down as demand changes.
This feature can be enabled in the services section of the fly.toml
[[services]]
# automatically start machines
auto_start_machines = true
# automatically stop machines
auto_stop_machines = true
...
...
internal_port = 8080
protocol = "tcp
Similarly if you’re using http_service
[http_service]
# automatically start machines…
And I’ve set the following on my fly.toml:
[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = false
auto_start_machines = false
min_machines_running = 0
I can already see that the machine isn’t shutting down anymore.
I will continue to monitor the app for the next day or so, but this seems to be what I was missing.
WARNING: if you don’t auto_stop_machines, they will run 24x7 and cost you money!