Hello,
This is the first time I’ve encountered this issue with the auto-stop functionality. All my other apps handle it perfectly fine.
For context, it’s a database that I access using its flycast address (myapp.flycast:port
).
It remains constantly running, even without usage. Therefore, the auto-stop feature doesn’t work. However, if I run fly machines stop my-machine-id
, it restarts fine when in use, and the health checks run smoothly.
Do you have any suggestions?
For your information, here’s my fly.toml:
app = "myapp"
primary_region = "cdg"
kill_signal = "SIGINT"
kill_timeout = "5s"
[experimental]
auto_rollback = true
[env]
PORT = "27017"
[[mounts]]
....some data
[[services]]
internal_port = 27017
auto_start_machines = true
auto_stop_machines = true
min_machines_running = 0
processes = ["app"]
protocol = "tcp"
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
port = 27017
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
[[vm]]
cpu_kind = "shared"
cpus = 2
memory_mb = 512