Well sure, but if it's blocked your timeout will never hit. On Tue, Jun 5, 2012 at 6:43 PM, Timothy Price <[email protected]> wrote:
> By how long the last tick was. I can tell if the loop was blocked by how > long the quota is. Well in theory at lest. > On Jun 5, 2012 6:56 PM, "Matt" <[email protected]> wrote: > >> But how will anything know if the event loop is blocked if it can't run? >> >> On Tue, Jun 5, 2012 at 5:42 PM, Tim Dickinson <[email protected]>wrote: >> >>> So you suggest monitoring the process from the out side? I would like to >>> do it in the apps state. >>> >>> >>> On Tuesday, June 5, 2012 5:23:51 PM UTC-4, akzhan wrote: >>>> >>>> Answer is don't block event loop, right? >>>> >>>> Extract blocking ops out of Node. >>>> >>>> Add /status url to the application and track it with monit/bluepill >>>> etc. to dump/restart wrong state app. >>>> >>>> 2012/6/6 Tim Dickinson <[email protected]> >>>> >>>>> Hey all >>>>> >>>>> So I'm looking for the best way to detect how blocked the event loop >>>>> is. >>>>> >>>>> What I'm thinking is to setTimeout say every 1sec and see what kind of >>>>> delay there is. You should get 1000ms but really 1001-1005ms on a clean >>>>> event loop. >>>>> >>>>> Would it be just to say if I'm getting 1050 to even 2000ms+ on the >>>>> timeout that the event loop is getting blocked. >>>>> >>>>> I'm building a basic "load balancing" over different processes running >>>>> the same app. I'm using bounce as the proxy and i want to >>>>> know which process i should route the request, the least congested >>>>> process. >>>>> >>>>> Thanks >>>>> >>>>> -- >>>>> Job Board: http://jobs.nodejs.org/ >>>>> Posting guidelines: https://github.com/joyent/** >>>>> node/wiki/Mailing-List-**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 [email protected] >>>>> To unsubscribe from this group, send email to >>>>> nodejs+unsubscribe@**googlegroups.com<nodejs%[email protected]> >>>>> For more options, visit this group at >>>>> http://groups.google.com/**group/nodejs?hl=en?hl=en<http://groups.google.com/group/nodejs?hl=en?hl=en> >>>>> >>>> >>>> -- >>> 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 [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/nodejs?hl=en?hl=en >>> >> >> -- >> 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 [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> > -- > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
