New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PM2 and cluster mode in Node.js/TypeScript #5790
Comments
You posted a lot of source code snippets but did not actually describe the issue you are having. |
@ultimate-tester |
Is that message appearing when you do |
Or another way, do you have any JS script that works with cluster mode? Can you share the repository with me, including the package.json file? |
Code 0 is a normal successful program end, which I'd expect from the code you provided. The cluster mode is meant to automatically share a listening port between all nodes in the cluster. For example if you setup an express server and want to load balance between multiple nodes. So perhaps the sample code of express might be a good test. Another example would be if you have built a (queue) worker. In any case scripts that keep running because they are listening on a port or waiting for an event to happen. |
I have a problem with running PM2 in cluster mode.
I am running it in Docker. How can I fix it?
The text was updated successfully, but these errors were encountered: