Skip to content

small question about cluster. SCHED_RR #639

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
p3x-robot opened this issue May 28, 2017 · 4 comments
Closed

small question about cluster. SCHED_RR #639

p3x-robot opened this issue May 28, 2017 · 4 comments

Comments

@p3x-robot
Copy link

ciao, could tell me what the round robin cluster scheduling?
if a process uses cpu 100% load in a fork worker, does it count about it or is something completely scheduling? so it will use another process when it overloaded?

@gibfahn
Copy link
Member

gibfahn commented May 28, 2017

Refs: nodejs/node#13267

From the docs:

The first one (and the default one on all platforms except Windows), is the round-robin approach, where the master process listens on a port, accepts new connections and distributes them across the workers in a round-robin fashion, with some built-in smarts to avoid overloading a worker process.

Does that answer your question?

@p3x-robot
Copy link
Author

p3x-robot commented May 28, 2017 via email

@gibfahn
Copy link
Member

gibfahn commented May 28, 2017

I'm not sure there's much C++ for cluster, it's mostly js in lib/internal/cluster.

@p3x-robot
Copy link
Author

awesome, thanks.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants