I've been working with a Fargate app recently and I've managed to make everything work (LB, listeners, routing, CNAME with Route53, https and http protocols), but for one thing:
The app itself is just a website and does not generally have any task running, it starts the task once a call is received. If it receives a call while the task is not running, the user gets a 503 response from the website. As soon as that happens, the task spawns and takes about 5 to 7 seconds to actually get up and running. After 15 seconds or so, it deregisters again (and again, anyone that comes to the website after that, receives that 503). So the loop begins again.
There's this other Fargate app, done by John Doe, that keeps the task alive for longer once it's up and running (so far I've tested it with pings every 3 minutes and keeps responding, still testing and from the logs I realise that I doesn't go down as soon as the response is given, it does have an idle state).
I've read somewhere that tasks can actually run for as long as we want. So my question is: How do I do that? How do I set up the "idle" time of a task in a Fargate app before it goes down again?
Thank you in advance!
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
This was removed by the editor as SPAM
Viewing 3 posts - 1 through 2 (of 2 total)