I'm trying to run an old Node.js project in AWS Elastic Beanstalk. It sometimes crashes and the environment health goes to "Degraded," but instead of restarting the container, EB just leaves it hanging.
Looking at the logs, it appears that the container exits due to some socket.io error.
This question has been asked before, but this answer, this answer, and this reddit comment all suggest configuring a load balancer. However, I have a single-instance application and I have no load balancer at all.
Is it possible to have EB restart single-instance applications automatically?