[Melbourne-pm] Monitoring Starman apps
Toby Corkindale
toby.corkindale at strategicdata.com.au
Wed Mar 14 19:26:01 PDT 2012
On 15/03/12 13:00, Matt Sharpe wrote:
> I was talking to Miyagawa about this and he mentioned
> Plack::Middleware::ServerStatus(::Lite); it does essentially what
> Apache's mod_status does and returns info on workers and active
> requests. Maybe something to look at? The Lite edition should do what
> you want if I understood your initial post correctly…
That looks like what I'm after!
It doesn't take into account io wait and keepalive sessions,
unfortunately, but as long as there's a reverse proxy in front, those
shouldn't be occurring, I think.
Cheers!
Toby
> On 15 March 2012 07:33, Toby Corkindale
> <toby.corkindale at strategicdata.com.au
> <mailto:toby.corkindale at strategicdata.com.au>> wrote:
>
> On 14/03/12 18:14, Andrew McN wrote:
>
> Measure the number of open sockets perhaps? Some limitation die to
> keep-Alive sockets.
>
> Sockets are probably better than looking at process states, but
> that's
> also possible.
>
>
> I considered this, but there are many states sockets can be in, and
> not all of them indicate that a process is held open for them.
> (ie. There are pending open and pending close states which are
> handled in the kernel)
>
> I have also considered using an IPC semaphore flag, which you can
> atomically increment or decrement from any process, so you could put
> increments and decrements in appropriate parts of your code..
>
> but I was really hoping that someone else had already created all of
> this! Surely monitoring the number of active Starman processes is an
> important metric for anyone using it in production?
>
> -Toby
>
> _________________________________________________
> Melbourne-pm mailing list
> Melbourne-pm at pm.org <mailto:Melbourne-pm at pm.org>
> http://mail.pm.org/mailman/__listinfo/melbourne-pm
> <http://mail.pm.org/mailman/listinfo/melbourne-pm>
>
>
--
.signature
More information about the Melbourne-pm
mailing list