I have a Fargate cluster setup to handle my API. It keeps dropping out, and I’m not sure what is causing it. When I say dropping out, I mean that when I first deploy the image, it works fine. But after maybe an hour of no use, it stops working entirely.
The API is hidden behind API gateway. It runs on a docker image pushed to AWS ECR. I just don’t understand how it can work for a while and then just drop out completely. I haven’t done any particular diagnostic tests on exactly when it drops out – whether it’s a specific timeframe or after a certain period of inactivity. It also seems to fix itself after a while, then have the same issues. There is no health checks on the container.
I’m not sure of other details which would be useful to anyone looking at this – ask for anything you need to diagnose this issue and I’ll update this question with the relevant details. Perhaps I’m just using the wrong tool for this purpose, perhaps I need a standard EC2 instance for this? I just like the scalability that Fargate provides.