Auto restart Foreman

On my production server, I use the ruby ​​wizard to start several processes, I just want my application to continue to work, even if one of the processes does not work, I want my processes to continue to work, even if one of them is any difficult way to restart the process or even stop all processes in case one of them goes down? I mean at the production level, I want the solution to be stable enough, is this possible without Upstart? thank you in advance

+4
source share
2 answers

You should not use the wizard for production - it is intended only for development. Instead, you can use something like god using the foreman_god gem in production.

Alternatively, you can use the wizards to export configuration files to other process monitoring systems, such as upstarts.

+1
source

You can monitor the progress of your wizard using another program, for example http://mmonit.com/monit/ . But somehow you will find that monitoring a process that controls other processes looks strange.

+1
source

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


All Articles