Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要计算出整个node.js集群的所有活动连接的数量。我使用 IPC 实现了一个肮脏的解决方案,该master过程跟踪每个人的响应worker,然后返回总和。难道没有更简洁的方法来计算整个活动连接的数量cluster吗?
node.js
master
worker
cluster