>
> But how will anything know if the event loop is blocked if it can't run?


By observing the extent of its not runningness.


On Tue, Jun 5, 2012 at 2:56 PM, Matt <hel...@gmail.com> 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 <price.ti...@gmail.com>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 <price.ti...@gmail.com>
>>>
>>>> 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 nodejs@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> nodejs+unsubscribe@**googlegroups.com<nodejs%2bunsubscr...@googlegroups.com>
>>>> 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 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
>>
>
>  --
> 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
>

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

Reply via email to