librelist archives

« back to archive

Mongrel2 mesage "@*"

Mongrel2 mesage "@*"

From:
William Martin
Date:
2013-05-17 @ 09:37
I just see that mongrel2 can ask to a handler to disconnect with the
JSON message "@*. Here a sample of log into photon.
When mongrel2 start to send this message, mongrel2 never stop and send
the message at high flow rate (100+ per second).

Loic, can you confirm that this message is not handle into photon ?

The easy way to fix that is just to kill the photon daemon, process
manager will restart it few seconds later. Another way is to
disconnect ZMQ and reconnect after few seconds.
What do you prefers ?

https://github.com/zedshaw/mongrel2/blob/master/src/handler.c#L62

2013-05-17T11:19:03+0200 [PERF]

["photon.dispatch","25848bad-6078-45b9-b622-dfbd9c5e8be6",6.7949295043945e-5,["JSON","@*"]]
2013-05-17T11:19:03+0200 [PERF]

["photon.process_request","25848bad-6078-45b9-b622-dfbd9c5e8be6",0.00049400329589844]
2013-05-17T11:19:03+0200 [PERF]

["photon.dispatch","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",7.2002410888672e-5,["JSON","@*"]]
2013-05-17T11:19:03+0200 [PERF]

["photon.process_request","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",0.00048208236694336]


William

Re: [photon.users] Mongrel2 mesage "@*"

From:
Loic d'Anterroches
Date:
2013-05-17 @ 09:45
Hello,

this is strange, I was sure I was handling this case correctly by not 
replying to @*. This is an error on my side. We need to fix this.

loïc

On 13-05-17 11:37 AM, William MARTIN wrote:
> I just see that mongrel2 can ask to a handler to disconnect with the
> JSON message "@*. Here a sample of log into photon.
> When mongrel2 start to send this message, mongrel2 never stop and send
> the message at high flow rate (100+ per second).
>
> Loic, can you confirm that this message is not handle into photon ?
>
> The easy way to fix that is just to kill the photon daemon, process
> manager will restart it few seconds later. Another way is to
> disconnect ZMQ and reconnect after few seconds.
> What do you prefers ?
>
> https://github.com/zedshaw/mongrel2/blob/master/src/handler.c#L62
>
> 2013-05-17T11:19:03+0200 [PERF]
> 
["photon.dispatch","25848bad-6078-45b9-b622-dfbd9c5e8be6",6.7949295043945e-5,["JSON","@*"]]
> 2013-05-17T11:19:03+0200 [PERF]
> 
["photon.process_request","25848bad-6078-45b9-b622-dfbd9c5e8be6",0.00049400329589844]
> 2013-05-17T11:19:03+0200 [PERF]
> 
["photon.dispatch","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",7.2002410888672e-5,["JSON","@*"]]
> 2013-05-17T11:19:03+0200 [PERF]
> 
["photon.process_request","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",0.00048208236694336]
>
>
> William
>

-- 
Dr Loïc d'Anterroches
Founder Céondo Ltd

w: www.ceondo.com       |  e: loic@ceondo.com
t: +44 (0)207 183 0016  |  f: +44 (0)207 183 0124

Céondo Ltd
Dalton House
60 Windsor Avenue
London
SW19 2RR / United Kingdom

Re: Mongrel2 mesage "@*"

From:
William Martin
Date:
2013-05-17 @ 09:44
The RAW message from mongrel2 is :

'fa696df4-f138-11e0-a813-00012e1c500e 12 @*
17:{"METHOD":"JSON"},21:{"type":"disconnect"},'

On Fri, May 17, 2013 at 11:37 AM, William MARTIN <wysman@gmail.com> wrote:
> I just see that mongrel2 can ask to a handler to disconnect with the
> JSON message "@*. Here a sample of log into photon.
> When mongrel2 start to send this message, mongrel2 never stop and send
> the message at high flow rate (100+ per second).
>
> Loic, can you confirm that this message is not handle into photon ?
>
> The easy way to fix that is just to kill the photon daemon, process
> manager will restart it few seconds later. Another way is to
> disconnect ZMQ and reconnect after few seconds.
> What do you prefers ?
>
> https://github.com/zedshaw/mongrel2/blob/master/src/handler.c#L62
>
> 2013-05-17T11:19:03+0200 [PERF]
> 
["photon.dispatch","25848bad-6078-45b9-b622-dfbd9c5e8be6",6.7949295043945e-5,["JSON","@*"]]
> 2013-05-17T11:19:03+0200 [PERF]
> 
["photon.process_request","25848bad-6078-45b9-b622-dfbd9c5e8be6",0.00049400329589844]
> 2013-05-17T11:19:03+0200 [PERF]
> 
["photon.dispatch","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",7.2002410888672e-5,["JSON","@*"]]
> 2013-05-17T11:19:03+0200 [PERF]
> 
["photon.process_request","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",0.00048208236694336]
>
>
> William



-- 
---------------------------------------------------------
William MARTIN
wysman @NoSpAm@ gmail @DoT@ com

Re: [photon.users] Re: Mongrel2 mesage "@*"

From:
Loic d'Anterroches
Date:
2013-05-17 @ 09:45
William,

which version of Mongrel2?

loïc

On 13-05-17 11:44 AM, William MARTIN wrote:
> The RAW message from mongrel2 is :
>
> 'fa696df4-f138-11e0-a813-00012e1c500e 12 @*
> 17:{"METHOD":"JSON"},21:{"type":"disconnect"},'
>
> On Fri, May 17, 2013 at 11:37 AM, William MARTIN <wysman@gmail.com> wrote:
>> I just see that mongrel2 can ask to a handler to disconnect with the
>> JSON message "@*. Here a sample of log into photon.
>> When mongrel2 start to send this message, mongrel2 never stop and send
>> the message at high flow rate (100+ per second).
>>
>> Loic, can you confirm that this message is not handle into photon ?
>>
>> The easy way to fix that is just to kill the photon daemon, process
>> manager will restart it few seconds later. Another way is to
>> disconnect ZMQ and reconnect after few seconds.
>> What do you prefers ?
>>
>> https://github.com/zedshaw/mongrel2/blob/master/src/handler.c#L62
>>
>> 2013-05-17T11:19:03+0200 [PERF]
>> 
["photon.dispatch","25848bad-6078-45b9-b622-dfbd9c5e8be6",6.7949295043945e-5,["JSON","@*"]]
>> 2013-05-17T11:19:03+0200 [PERF]
>> 
["photon.process_request","25848bad-6078-45b9-b622-dfbd9c5e8be6",0.00049400329589844]
>> 2013-05-17T11:19:03+0200 [PERF]
>> 
["photon.dispatch","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",7.2002410888672e-5,["JSON","@*"]]
>> 2013-05-17T11:19:03+0200 [PERF]
>> 
["photon.process_request","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",0.00048208236694336]
>>
>>
>> William
>
>
>

-- 
Dr Loïc d'Anterroches
Founder Céondo Ltd

w: www.ceondo.com       |  e: loic@ceondo.com
t: +44 (0)207 183 0016  |  f: +44 (0)207 183 0124

Céondo Ltd
Dalton House
60 Windsor Avenue
London
SW19 2RR / United Kingdom

Re: [photon.users] Re: Mongrel2 mesage "@*"

From:
William Martin
Date:
2013-05-17 @ 09:51
Mongrel2 1.8.0

William

On Fri, May 17, 2013 at 11:45 AM, Loic d'Anterroches <loic@ceondo.com> wrote:
> William,
>
> which version of Mongrel2?
>
> loïc
>
> On 13-05-17 11:44 AM, William MARTIN wrote:
>> The RAW message from mongrel2 is :
>>
>> 'fa696df4-f138-11e0-a813-00012e1c500e 12 @*
>> 17:{"METHOD":"JSON"},21:{"type":"disconnect"},'
>>
>> On Fri, May 17, 2013 at 11:37 AM, William MARTIN <wysman@gmail.com> wrote:
>>> I just see that mongrel2 can ask to a handler to disconnect with the
>>> JSON message "@*. Here a sample of log into photon.
>>> When mongrel2 start to send this message, mongrel2 never stop and send
>>> the message at high flow rate (100+ per second).
>>>
>>> Loic, can you confirm that this message is not handle into photon ?
>>>
>>> The easy way to fix that is just to kill the photon daemon, process
>>> manager will restart it few seconds later. Another way is to
>>> disconnect ZMQ and reconnect after few seconds.
>>> What do you prefers ?
>>>
>>> https://github.com/zedshaw/mongrel2/blob/master/src/handler.c#L62
>>>
>>> 2013-05-17T11:19:03+0200 [PERF]
>>> 
["photon.dispatch","25848bad-6078-45b9-b622-dfbd9c5e8be6",6.7949295043945e-5,["JSON","@*"]]
>>> 2013-05-17T11:19:03+0200 [PERF]
>>> 
["photon.process_request","25848bad-6078-45b9-b622-dfbd9c5e8be6",0.00049400329589844]
>>> 2013-05-17T11:19:03+0200 [PERF]
>>> 
["photon.dispatch","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",7.2002410888672e-5,["JSON","@*"]]
>>> 2013-05-17T11:19:03+0200 [PERF]
>>> 
["photon.process_request","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",0.00048208236694336]
>>>
>>>
>>> William
>>
>>
>>
>
> --
> Dr Loïc d'Anterroches
> Founder Céondo Ltd
>
> w: www.ceondo.com       |  e: loic@ceondo.com
> t: +44 (0)207 183 0016  |  f: +44 (0)207 183 0124
>
> Céondo Ltd
> Dalton House
> 60 Windsor Avenue
> London
> SW19 2RR / United Kingdom



-- 
---------------------------------------------------------
William MARTIN
wysman @NoSpAm@ gmail @DoT@ com

Re: [photon.users] Re: Mongrel2 mesage "@*"

From:
Loic d'Anterroches
Date:
2013-05-17 @ 11:06

On 13-05-17 11:51 AM, William MARTIN wrote:
> Mongrel2 1.8.0

Maybe this has been introduced by the 1.8.0. I can now remember that the 
case I was handling was when Mongrel2 informs the handler that a client 
disconnected. This is not the same. Do not hesitate to update Photon to 
force a disconnect at the ZMQ level and reconnect or to perform a "self 
kill" and let the process manager restart.

loïc

> On Fri, May 17, 2013 at 11:45 AM, Loic d'Anterroches <loic@ceondo.com> wrote:
>> William,
>>
>> which version of Mongrel2?
>>
>> loïc
>>
>> On 13-05-17 11:44 AM, William MARTIN wrote:
>>> The RAW message from mongrel2 is :
>>>
>>> 'fa696df4-f138-11e0-a813-00012e1c500e 12 @*
>>> 17:{"METHOD":"JSON"},21:{"type":"disconnect"},'
>>>
>>> On Fri, May 17, 2013 at 11:37 AM, William MARTIN <wysman@gmail.com> wrote:
>>>> I just see that mongrel2 can ask to a handler to disconnect with the
>>>> JSON message "@*. Here a sample of log into photon.
>>>> When mongrel2 start to send this message, mongrel2 never stop and send
>>>> the message at high flow rate (100+ per second).
>>>>
>>>> Loic, can you confirm that this message is not handle into photon ?
>>>>
>>>> The easy way to fix that is just to kill the photon daemon, process
>>>> manager will restart it few seconds later. Another way is to
>>>> disconnect ZMQ and reconnect after few seconds.
>>>> What do you prefers ?
>>>>
>>>> https://github.com/zedshaw/mongrel2/blob/master/src/handler.c#L62
>>>>
>>>> 2013-05-17T11:19:03+0200 [PERF]
>>>> 
["photon.dispatch","25848bad-6078-45b9-b622-dfbd9c5e8be6",6.7949295043945e-5,["JSON","@*"]]
>>>> 2013-05-17T11:19:03+0200 [PERF]
>>>> 
["photon.process_request","25848bad-6078-45b9-b622-dfbd9c5e8be6",0.00049400329589844]
>>>> 2013-05-17T11:19:03+0200 [PERF]
>>>> 
["photon.dispatch","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",7.2002410888672e-5,["JSON","@*"]]
>>>> 2013-05-17T11:19:03+0200 [PERF]
>>>> 
["photon.process_request","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",0.00048208236694336]
>>>>
>>>>
>>>> William
>>>
>>>
>>>
>>
>> --
>> Dr Loïc d'Anterroches
>> Founder Céondo Ltd
>>
>> w: www.ceondo.com       |  e: loic@ceondo.com
>> t: +44 (0)207 183 0016  |  f: +44 (0)207 183 0124
>>
>> Céondo Ltd
>> Dalton House
>> 60 Windsor Avenue
>> London
>> SW19 2RR / United Kingdom
>
>
>

-- 
Dr Loïc d'Anterroches
Founder Céondo Ltd

w: www.ceondo.com       |  e: loic@ceondo.com
t: +44 (0)207 183 0016  |  f: +44 (0)207 183 0124

Céondo Ltd
Dalton House
60 Windsor Avenue
London
SW19 2RR / United Kingdom

Re: [photon.users] Re: Mongrel2 mesage "@*"

From:
William Martin
Date:
2013-05-17 @ 18:04
I thinks the issue is in mongrel2 which flood the handler, i have
record some trace of mongrel2 crash (not sure is related).

https://github.com/zedshaw/mongrel2/issues/148#issuecomment-17997418

On Fri, May 17, 2013 at 1:06 PM, Loic d'Anterroches <loic@ceondo.com> wrote:
>
>
> On 13-05-17 11:51 AM, William MARTIN wrote:
>> Mongrel2 1.8.0
>
> Maybe this has been introduced by the 1.8.0. I can now remember that the
> case I was handling was when Mongrel2 informs the handler that a client
> disconnected. This is not the same. Do not hesitate to update Photon to
> force a disconnect at the ZMQ level and reconnect or to perform a "self
> kill" and let the process manager restart.
>
> loïc
>
>> On Fri, May 17, 2013 at 11:45 AM, Loic d'Anterroches <loic@ceondo.com> wrote:
>>> William,
>>>
>>> which version of Mongrel2?
>>>
>>> loïc
>>>
>>> On 13-05-17 11:44 AM, William MARTIN wrote:
>>>> The RAW message from mongrel2 is :
>>>>
>>>> 'fa696df4-f138-11e0-a813-00012e1c500e 12 @*
>>>> 17:{"METHOD":"JSON"},21:{"type":"disconnect"},'
>>>>
>>>> On Fri, May 17, 2013 at 11:37 AM, William MARTIN <wysman@gmail.com> wrote:
>>>>> I just see that mongrel2 can ask to a handler to disconnect with the
>>>>> JSON message "@*. Here a sample of log into photon.
>>>>> When mongrel2 start to send this message, mongrel2 never stop and send
>>>>> the message at high flow rate (100+ per second).
>>>>>
>>>>> Loic, can you confirm that this message is not handle into photon ?
>>>>>
>>>>> The easy way to fix that is just to kill the photon daemon, process
>>>>> manager will restart it few seconds later. Another way is to
>>>>> disconnect ZMQ and reconnect after few seconds.
>>>>> What do you prefers ?
>>>>>
>>>>> https://github.com/zedshaw/mongrel2/blob/master/src/handler.c#L62
>>>>>
>>>>> 2013-05-17T11:19:03+0200 [PERF]
>>>>> 
["photon.dispatch","25848bad-6078-45b9-b622-dfbd9c5e8be6",6.7949295043945e-5,["JSON","@*"]]
>>>>> 2013-05-17T11:19:03+0200 [PERF]
>>>>> 
["photon.process_request","25848bad-6078-45b9-b622-dfbd9c5e8be6",0.00049400329589844]
>>>>> 2013-05-17T11:19:03+0200 [PERF]
>>>>> 
["photon.dispatch","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",7.2002410888672e-5,["JSON","@*"]]
>>>>> 2013-05-17T11:19:03+0200 [PERF]
>>>>> 
["photon.process_request","1e8070b8-da8e-43ea-b4d0-1a37a3e0db66",0.00048208236694336]
>>>>>
>>>>>
>>>>> William
>>>>
>>>>
>>>>
>>>
>>> --
>>> Dr Loïc d'Anterroches
>>> Founder Céondo Ltd
>>>
>>> w: www.ceondo.com       |  e: loic@ceondo.com
>>> t: +44 (0)207 183 0016  |  f: +44 (0)207 183 0124
>>>
>>> Céondo Ltd
>>> Dalton House
>>> 60 Windsor Avenue
>>> London
>>> SW19 2RR / United Kingdom
>>
>>
>>
>
> --
> Dr Loïc d'Anterroches
> Founder Céondo Ltd
>
> w: www.ceondo.com       |  e: loic@ceondo.com
> t: +44 (0)207 183 0016  |  f: +44 (0)207 183 0124
>
> Céondo Ltd
> Dalton House
> 60 Windsor Avenue
> London
> SW19 2RR / United Kingdom



-- 
---------------------------------------------------------
William MARTIN
wysman @NoSpAm@ gmail @DoT@ com