Use pm2, it can help you start multiple service threads, utilize the server's CPU as much as possible, and ensure that the process is always alive and reloaded in 0 seconds. For specific usage, you can google it yourself. Official website address: http://pm2.keymetrics.io
Use pm2, it can help you start multiple service threads, utilize the server's CPU as much as possible, and ensure that the process is always alive and reloaded in 0 seconds.
For specific usage, you can google it yourself.
Official website address: http://pm2.keymetrics.io
To take full advantage of multi-core CPU, please use go
The native
cluster
module has already solved this problem for you.Reference: https://cnodejs.org/topic/56e...