low performance problem in the RoundRobinHandle #37343
Labels
cluster
Issues and PRs related to the cluster subsystem.
performance
Issues and PRs related to the performance of Node.js.
What steps will reproduce the bug?
When there are many new tcp handle send to the master process, it first save it in internal array, and find a free worker process to send to. But there is a low performance problem in the
RoundRobinHandle
. When the array's length exceeds a certain value, the master process would busy to callshift
function of array, its CPU percentage will raise up to 100%, but the children workers have low CPU usages in the other hand.I have generated a CPU flame graph as follows:
The text was updated successfully, but these errors were encountered: