I have a question that is not immediately obvious after reading these two links. How well does Node's round robin work with requests that produce significantly varied workloads on the server? I don't mean, how well does the round robin algorithm work with varies workloads, since I already know the answer to that... what I mean is, is Node smart enough to skip workers that are still busy from the last round robin request sent to them? In other words, if a worker is busy on a CPU bound function, will it be skipped until it gets freed up again? We have a development platform that is similar to Meteor ( http://www.meteor.com/ ) in that code transparently runs on the client or server. All processing is done in JavaScript, which means some functions are way more CPU bound than others - and the creative developers using this platform use it for all sorts of things (data processing, image processing, DB access, etc). What we like about the current clustering is that a request is not sent to a worker that is spinning away on some CPU bound function. Yes, the current approach does tend to send requests to the same workers when they are not busy, so round robin would be awesome to fix that issue... but is the current round robin smart enough to skip workers that are busy?
Thanks! On Wednesday, November 20, 2013 12:37:47 PM UTC-6, Jimmy Guerrero wrote: > > In addition to the official docs here: > > http://nodejs.org/api/all.html#all_cluster<http://www.google.com/url?q=http%3A%2F%2Fnodejs.org%2Fapi%2Fall.html%23all_cluster&sa=D&sntz=1&usg=AFQjCNEXWleL_J373P9tUWeKISPRVeDuLQ> > > Ben Noordhuis has written up a recap of how clustering in Node works along > with an intro to the new round-robin clustering available starting in > v0.11.2. > > > http://strongloop.com/strongblog/whats-new-in-node-js-v0-12-cluster-round-robin-load-balancing/<http://www.google.com/url?q=http%3A%2F%2Fstrongloop.com%2Fstrongblog%2Fwhats-new-in-node-js-v0-12-cluster-round-robin-load-balancing%2F&sa=D&sntz=1&usg=AFQjCNFYQzi4MdPUsoS2jyh3MIARWisvqg> > > -- Jimmy > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.