noobaa / noobaa-core

High-performance S3 application gateway to any backend - file / s3-compatible / multi-clouds / caching / replication ...
https://www.noobaa.io
Apache License 2.0
265 stars 78 forks source link

Use PM2 to manage endpoint process #5961

Open paulxuzhang opened 4 years ago

paulxuzhang commented 4 years ago

Is your feature request related to a problem? Please describe. Description of what the problem is. Have an easier way to restart the endpoint "./src/s3/s3rver_starter.js" if we change .js file in POD for testing/debugging.

Describe the solution you'd like Description of what you want to happen. Leverage PM2 (https://pm2.keymetrics.io/docs/usage/docker-pm2-nodejs/) to restart the endpoint after making changes to .js file in POD. PM2 can automatically restart your application when a file is modified in the current directory or its subdirectories (https://pm2.keymetrics.io/docs/usage/watch-and-restart/)

Describe alternatives you've considered Description of alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here. https://pm2.keymetrics.io/docs/usage/docker-pm2-nodejs/ https://pm2.keymetrics.io/docs/usage/watch-and-restart/

guymguym commented 4 years ago

@paulxuzhang Many thanks - PM2 looks very interesting. @nimrod-becker What do you think?

nimrod-becker commented 4 years ago

Sounds interesting, need to verify how it behaves in the different deployment platforms :)