AWS Elastic Beanstalk Docker PHP application
I have a docker container running on AWS EB on a t1.micro, which is a PHP application that loops through some tasks, sleeps for a few minutes, and loops through its tasks again. Tasks involve moving some data on an FTP, and updating records from a Redis store.
It always builds and runs fine, but after a day the health of the application changes to “Warning”, the causes state that CPU is running at 100%, I don’t see any activity on the FTP that it processes, and the logs show nothing indicating the application failing.
Is this just a case of upgrading the EC2 instance to a higher spec? Or is there a flaw in the way i’m running the container that would release resource after each iteration.