单个 Node 进程仅使用一个 CPU 核(其 JS 在一个线程上运行)。要使用机器上的所有核,需要运行多个 Node 进程 — 通过 cluster 模块、PM2 等进程管理器或容器编排 — 并在它们之间对请求进行负载均衡。
问题
text
A server with 8 CPU cores running ONE Node process → uses ~1 core, wastes 7.
Need multiple processes to utilize all cores and handle more concurrent load.
