I have an app hosting a website. It works as expected, but after sometime (10 mins, 30 mins, 1 hour), it stops working. When I try to access it via a the fly.dev or my custom domain it is unresponsive and after a while I see on monitoring: mia [error] could not make HTTP request to instance: connection error: timed out
If were to restart it using fly apps restart ... it starts working again, then it stops again.
What could it be?
I see the mia [info] GET /healthcheck 200 on the logs
When I do fly scale show -a [app_name]: app 1 performance 2 4096 MB mia
I set it up to be: performance-2x, although in the fly.io dashboard I see it says shared-1x-cpu@256MB on the app overview or the machine overview (don’t know why).
More info: It has 10GB volume attached, and I have a connection to redis using upstash
Does your app stop working while users are accessing it, or when idle?
You could try posting more logs here, as well as your fly.toml file (redacted if needed), and maybe what framework you’re using. Someone might be able to help with this extra info.
I’ve been reading that people have had issues apparently with redis connections. I’ve playing around with client settings but no luck so far. Waiting on results on my last tweak that have to do with the pingInterval in the client.