Hi!
I am not sure if I have understood HTTP health check correctly, but i have this kind of configuration:
[[services.http_checks]]
interval = 10000
method = "get"
path = "/healthcheck"
protocol = "http"
timeout = 5000
tls_skip_verify = false
I have no TCP checks defined.
Instance status/health checks is currently: running/1 total, 1 critical
. I assumed Fly would restart my app if all(?) health checks fail, but it looks like restart does not happen.
flyctl checks list:
NAME STATUS ALLOCATION REGION TYPE LAST UPDATED OUTPUT
5c800e7c9d8a343831f802ff4147a8ff critical c5fe99a5 lhr HTTP 6m6s ago HTTP GET
http://172.19.2.2:3000/healthcheck:
503 Service Unavailable Output:
{"error":"internal error"}
5c800e7c9d8a343831f802ff4147a8ff critical 97162895 fra HTTP 13s ago HTTP GET
http://172.19.1.130:3000/healthcheck:
503 Service Unavailable Output:
{"error":"internal error"}
So, on both instances health check is failing.
What I would want would be that Fly would restart instance on this situation - is that possible somehow?