librelist archives

« back to archive

Proposal: removal of the smart stats

Proposal: removal of the smart stats

From:
Loic d'Anterroches
Date:
2012-03-06 @ 17:45
Hello,

from my experience with Photon in production, we do not need the smarts
stats to figure out what is going on. So, we could remove that and it
will save us some work in the loop handling the requests from Mongrel2.

I will just add a call to the garbage collector in the loop. Not for
each run, but for $i % 500 or so. I can see from my logs that my
handlers are consuming a bit more memory with the time and I wonder if
garbage collection can help.

Then I will test and see if this is worth the extra lines in the code.

loïc

Re: [photon.users] Proposal: removal of the smart stats

From:
William Martin
Date:
2012-03-08 @ 08:27
Hi Loic,

I currently don't use it.
I thinks it better to lets its monitoring job to a dedicated process,
like what you do for the process management with diprocd.
They have lot of tools to report CPU/MEM usage.

William

On Tue, Mar 6, 2012 at 6:45 PM, Loic d'Anterroches <loic@ceondo.com> wrote:
> Hello,
>
> from my experience with Photon in production, we do not need the smarts
> stats to figure out what is going on. So, we could remove that and it
> will save us some work in the loop handling the requests from Mongrel2.
>
> I will just add a call to the garbage collector in the loop. Not for
> each run, but for $i % 500 or so. I can see from my logs that my
> handlers are consuming a bit more memory with the time and I wonder if
> garbage collection can help.
>
> Then I will test and see if this is worth the extra lines in the code.
>
> loïc



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

Re: [photon.users] Proposal: removal of the smart stats

From:
Loic d'Anterroches
Date:
2012-03-08 @ 08:39
Hello,

On 2012-03-08 09:27, William MARTIN wrote:
> Hi Loic,
> 
> I currently don't use it.
> I thinks it better to lets its monitoring job to a dedicated process,
> like what you do for the process management with diprocd.
> They have lot of tools to report CPU/MEM usage.

Ok removed. The only thing we do not get anymore is the average poll
time which could be use to scale the handlers. But I must say, I am far
from needing such level of information.

loïc

> On Tue, Mar 6, 2012 at 6:45 PM, Loic d'Anterroches <loic@ceondo.com> wrote:
>> Hello,
>>
>> from my experience with Photon in production, we do not need the smarts
>> stats to figure out what is going on. So, we could remove that and it
>> will save us some work in the loop handling the requests from Mongrel2.
>>
>> I will just add a call to the garbage collector in the loop. Not for
>> each run, but for $i % 500 or so. I can see from my logs that my
>> handlers are consuming a bit more memory with the time and I wonder if
>> garbage collection can help.
>>
>> Then I will test and see if this is worth the extra lines in the code.
>>
>> loïc
> 
> 
> 

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