You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Yuri Arabadji <yu...@fused.com> on 2011/12/01 20:52:29 UTC
mod_status scoreboard showing wrong slot quantity
Hi.
It appears that someone messed up scoreboard in httpd 2.2.
We've got mpm worker with the following config:
http://stage.fused.net/huy#worker.c
MaxSpareThreads 250
MinSpareThreads 25
ThreadsPerChild 25
ServerLimit 30
MaxClients 750
It's pretty obvious the total number of child threads should be max. 750, but
scoreboard shows a different picture:
http://stage.fused.net/server-status?auto
================================================
Total Accesses: 16
Total kBytes: 12
CPULoad: .0909091
Uptime: 11
ReqPerSec: 1.45455
BytesPerSec: 1117.09
BytesPerReq: 768
BusyWorkers: 1
IdleWorkers: 74
Scoreboard:
_________________________......................................._________________________......................................._______W_________________.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
================================================
If you count all those chars, you'll get 1920. Anybody knows what's going on?
Thanks.
--
Best regards,
Yuri Arabadji -- Systems Engineer
Re: mod_status scoreboard showing wrong slot quantity
Posted by Sagar Chanana <sa...@gmail.com>.
fuck off and delete my email from your list...I have tried many times..You
are bullshit !!
On Thu, Dec 1, 2011 at 11:52 AM, Yuri Arabadji <yu...@fused.com> wrote:
> Hi.
>
> It appears that someone messed up scoreboard in httpd 2.2.
>
> We've got mpm worker with the following config:
>
> http://stage.fused.net/huy#worker.c
>
> MaxSpareThreads 250
> MinSpareThreads 25
> ThreadsPerChild 25
> ServerLimit 30
> MaxClients 750
>
> It's pretty obvious the total number of child threads should be max. 750,
> but
> scoreboard shows a different picture:
>
> http://stage.fused.net/server-status?auto
>
> ================================================
> Total Accesses: 16
> Total kBytes: 12
> CPULoad: .0909091
> Uptime: 11
> ReqPerSec: 1.45455
> BytesPerSec: 1117.09
> BytesPerReq: 768
> BusyWorkers: 1
> IdleWorkers: 74
> Scoreboard:
>
> _________________________......................................._________________________......................................._______W_________________.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
> ================================================
>
> If you count all those chars, you'll get 1920. Anybody knows what's going
> on?
>
>
> Thanks.
>
> --
> Best regards,
> Yuri Arabadji -- Systems Engineer
>
--
Thanks & regards,
Sagar Chanana
Mobile;- +91 9031958808
Re: mod_status scoreboard showing wrong slot quantity
Posted by Yuri Arabadji <yu...@fused.com>.
I was just expressing my opinion, in the end, you decide, you're the
developer. Though it might be worth noting that CPUs and memory on modern VMs
can be hot-plugged, so be careful. Would also be cool if the server could log
at startup the auto-determined amount of maximum possible connections /
clients it can handle.
Thanks.
On Friday 02 December 2011, Igor Galić wrote:
> ----- Original Message -----
>
> > > > If you count all those chars, you'll get 1920. Anybody knows
> > > > what's going
> > > > on?
> > >
> > > yep. ServerLimit * ThreadLimit (defaulted) = 30 * 64 = 1920
> >
> > Hmm, that's indeed the case. I was perplexed by wording there.
> > Those ServerLimits and ThreadLimits could be set automatically, based
> > on
> > user's impression of maximum amount of connections he wants the
> > server to
> > handle.
>
> That's sort of what MaxRequestWorkers (the artist formerly know as
> MaxClients) is for:
>
> http://httpd.apache.org/docs/trunk/mod/mpm_common.html#maxrequestworkers
>
> The only problem is that you still have to scale those other two
> to get there. I am still of the opinion it would make sense to
> scale those automagickally: We define (an arbitrary, perhaps sane)
> default for MaxRequestWorkers. Using a library such as hwloc to
> determine the CPU topology (and the amount of available memory) we
> then auto-scale ServerLimit and ThreadLimit and ThreadsPerChild.
>
> > Thanks for help.
> >
> > --
--
Best regards,
Yuri Arabadji -- Systems Engineer
Re: mod_status scoreboard showing wrong slot quantity
Posted by Igor Galić <i....@brainsware.org>.
----- Original Message -----
>
> > > If you count all those chars, you'll get 1920. Anybody knows
> > > what's going
> > > on?
> > yep. ServerLimit * ThreadLimit (defaulted) = 30 * 64 = 1920
>
> Hmm, that's indeed the case. I was perplexed by wording there.
> Those ServerLimits and ThreadLimits could be set automatically, based
> on
> user's impression of maximum amount of connections he wants the
> server to
> handle.
That's sort of what MaxRequestWorkers (the artist formerly know as
MaxClients) is for:
http://httpd.apache.org/docs/trunk/mod/mpm_common.html#maxrequestworkers
The only problem is that you still have to scale those other two
to get there. I am still of the opinion it would make sense to
scale those automagickally: We define (an arbitrary, perhaps sane)
default for MaxRequestWorkers. Using a library such as hwloc to
determine the CPU topology (and the amount of available memory) we
then auto-scale ServerLimit and ThreadLimit and ThreadsPerChild.
> Thanks for help.
>
> --
> Best regards,
> Yuri Arabadji -- Systems Engineer
So long,
i
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE
Re: mod_status scoreboard showing wrong slot quantity
Posted by Yuri Arabadji <yu...@fused.com>.
> > If you count all those chars, you'll get 1920. Anybody knows what's going
> > on?
> yep. ServerLimit * ThreadLimit (defaulted) = 30 * 64 = 1920
Hmm, that's indeed the case. I was perplexed by wording there.
Those ServerLimits and ThreadLimits could be set automatically, based on
user's impression of maximum amount of connections he wants the server to
handle.
Thanks for help.
--
Best regards,
Yuri Arabadji -- Systems Engineer
Re: mod_status scoreboard showing wrong slot quantity
Posted by Greg Ames <am...@gmail.com>.
On Thu, Dec 1, 2011 at 2:52 PM, Yuri Arabadji <yu...@fused.com> wrote:
>
>
> We've got mpm worker with the following config:
>
> http://stage.fused.net/huy#worker.c
>
> MaxSpareThreads 250
> MinSpareThreads 25
> ThreadsPerChild 25
> ServerLimit 30
> MaxClients 750
>
> It's pretty obvious the total number of child threads should be max. 750,
> but
> scoreboard shows a different picture:
>
>
> If you count all those chars, you'll get 1920. Anybody knows what's going
> on?
>
yep. ServerLimit * ThreadLimit (defaulted) = 30 * 64 = 1920
Greg