Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cluster: introduce `distribute` option #6004
Haha, I understand your concerns. Let me describe it in detail.
The problem with this is that it relies on existence of balancing in node, and we're not sure that it'll stay here for a long time. Even if it'll stay - the method how it is performed may change or move to the C/C++ without changing public API for users.
But with this
I think best approach would be to test round-robin in 0.12 and pull this into the next release.
Requests distribution problem is still here, but for a long time we successfully use dual-layer load balancing. RR at proxy level (nginx/haproxy/...) is used to distribute requests between small groups of workers and on node.js level, we just use default behavior – it works fine.