In order to reduce the chance of downtime. I plan to use node's cluster module to enable multi-threading. One master thread is responsible for scheduling, and multiple worker threads are responsible for processing business.
Now the server's CPU only has a single-core CPU, which should be able to have multiple worker threads, right?
My thinking: A single-core CPU can have multiple parallel processes. Each process can start a node instance to achieve the above effect.
No, one core and one cluster
cpu to worker1:1
cluster does multi-process, one core and one process