Does AWS EB instance automatically restart on failure?

I have a NodeJS instance working with Amazon Elastic Beanstalk. I would like to know if the instance will automatically restart if nodejs server crashes? Should I use foreverjs?

thank

+4
source share
1 answer

TL; DR - use foreverjs.

So there are two types of restart. One of them is code that throws an exception and stops the node. OS is still running. In this case, from the OS point of view, node decided to exit. None of this business. Here foreverjs plays a role - it will watch the node and reload it if it ever stops due to an exception / error, etc.

- . , , .. AWS ; , . ( - , ). , . - , - .

+1

Source: https://habr.com/ru/post/1535475/


All Articles