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
> 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

Reply via email to