Hi,
I’m fighting with auto-stop with my db apps (for example 6e82219b50dd87). I’ve elixir apps with auto-scaling (working fine) and linked postgres apps (don’t work fine = don’t auto-stop).
I’ve been trying to setup the postgres app fly.toml by doing fly config save -a xxx-db
, modifying the file and then re-deploying it. I’ve checked the modified fly.toml (to be sure that my updates were taken into account) :
app = "xxxxxxxxx-db"
primary_region = "cdg"
kill_signal = "SIGTERM"
kill_timeout = "5s"
[env]
FLY_SCALE_TO_ZERO = "1h"
PRIMARY_REGION = "cdg"
[[mounts]]
source = "pg_data"
destination = "/data"
[[services]]
protocol = "tcp"
internal_port = 5432
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
Maybe someone can tell me where i’m wrong?