You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Koray Ersin <me...@korayersin.com> on 2014/07/01 14:02:08 UTC

[users@httpd] Apache load capacity

Hi all,

I have an Apache/2.2.15 server running on RHEL 6.

There is a single file (150K in size )hosted on this server.

The server has 2 x 2.6Ghz quad-core CPU and has 12GB memory.

I would like to know/calculate how many concurrent users can download 
this file.

Which configurable files we have on Apache the load on the server ?

Thanks,

Koray



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache load capacity

Posted by Tom Evans <te...@googlemail.com>.
.On Fri, Jul 18, 2014 at 2:52 PM, David Favor <da...@davidfavor.com> wrote:
> A quick test of how fast a single file will serve is to do this.
>
>    1) ssh into your machine (you must ssh in for this test for it to be
> accurate)
>
>    2) create a 150K file
>       net1# dd if=/dev/zero of=output.dat bs=150K count=1
>
>    3) run ab against said file
>       net1# ab -k -t 10 -n 10000000 -c 5 http://davidfavor.com/output.dat |
> grep Requests
>       Finished 200265 requests
>       Requests per second:    20026.41 [#/sec] (mean)
>
> So on this particular server, 20,000+ people can download this file every 1
> second...

No, that test says that 10 people can download that file 2000 times
each in one second.

Cheers

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache load capacity

Posted by David Favor <da...@davidfavor.com>.
Koray Ersin wrote:
> Hi all,
> 
> I have an Apache/2.2.15 server running on RHEL 6.
> 
> There is a single file (150K in size )hosted on this server.
> 
> The server has 2 x 2.6Ghz quad-core CPU and has 12GB memory.
> 
> I would like to know/calculate how many concurrent users can download 
> this file.
> 
> Which configurable files we have on Apache the load on the server ?
> 
> Thanks,
> 
> Koray

Approach this differently, as your answer relates to how your entire
server is tuned...

    Filesystem type + mount options
    If MariaDB/MySQL is in use, is /tmp in tmpfs (memory) or on disk
    If PHP is in use, is APC (Apache-2.2.x) or Opcache (Apache-2.4.x) tuned

All accesses will fight for resources.

If your site really only serves one file + no other content, then you'll
be constrained by several things...

    Your Ethernet connection 100M or 1G or 10G (primary factor)
    Caching headers sent with your file (if file downloaded multiple times by same user)
    If file is cached well (Filesystem tuned + maybe Apache cache tuned)

A quick test of how fast a single file will serve is to do this.

    1) ssh into your machine (you must ssh in for this test for it to be accurate)

    2) create a 150K file
       net1# dd if=/dev/zero of=output.dat bs=150K count=1

    3) run ab against said file
       net1# ab -k -t 10 -n 10000000 -c 5 http://davidfavor.com/output.dat | grep Requests
       Finished 200265 requests
       Requests per second:    20026.41 [#/sec] (mean)

So on this particular server, 20,000+ people can download this file every 1 second...

    depending on speed of Ethernet connection

Then you have to determine the connection speed you require, base on number
of simultaneous downloads/second you must support.

This is a very simple explanation + only correct in simple terms + you get the
ideas. You can test your max file serving speed using ab on your machine. Then
run the same test elsewhere which will then test your Ethernet speed - both of
your server (where domain lives) + where you run the test from, so if you run
this from your home, you'll be limited by both your home connection + server
connection.

If you really must have these numbers for a biz reason, best hire someone that
does this type of testing every day.

- David, Skype: davidfavor

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org