Hello,
I’m currently experiencing some issues with my app sometimes it stops responding, and the following service health check fails. Restarting the machine seems to “fix” the issue:
[[services.tcp_checks]]
interval = "15s"
timeout = "2s"
grace_period = "1s"
restart_limit = 0
I initially thought I just needed to change restart_limit to automatically restart the machine, but it looks like this configuration option has been removed.
So I’m wondering: how can I trigger a machine restart when the health check is failing? I came across Autostop/autostart Machines · Fly Docs, but it doesn’t seem to address what I’m looking for.