Web Hosting Talk







View Full Version : How many max clients can your server do?


ClusterMania
06-07-2002, 12:34 PM
How high has your server gone and what server specs? Mine maxing at 2022 and need to bump it a bit higher. I got dual 1.13 Ghz with 2 gig ram.

cperciva
06-07-2002, 12:39 PM
What do you have in terms of spindles? You'd probably not need quite so many children if they weren't waiting for I/O so much.

ClusterMania
06-08-2002, 09:38 AM
last pid: 29292; load averages: 10.19, 5.98, 11.971 up 4+14:30:17 06:29:14
2062 processes:14 running, 2048 sleeping
CPU states: 1.3% user, 0.0% nice, 10.7% system, 3.6% interrupt, 84.3% idle
Mem: 1382M Active, 113M Inact, 418M Wired, 96M Cache, 214M Buf, 3008K Free
Swap: 2048M Total, 174M Used, 1874M Free, 8% Inuse


Load and cpu looks low

FHDave
06-08-2002, 09:43 AM
You got a really nice syste, but why is (15 min average) load of 11+ considered "low"? How many TCP connections are you serving with that load?

ClusterMania
06-08-2002, 09:46 AM
/kernel: proc: table is full

My server is maxed =/ at 2022 and won't fork anymore

Current Time: Saturday, 08-Jun-2002 06:37:43 PDT
Restart Time: Monday, 03-Jun-2002 16:00:14 PDT
Parent Server Generation: 0
Server uptime: 4 days 14 hours 37 minutes 29 seconds
Total accesses: 48579406 - Total Traffic: 1560.2 GB
CPU Usage: u12193.9 s99339.9 cu83.2344 cs90.1172 - 28% CPU load
122 requests/sec - 4.0 MB/second - 33.7 kB/request
1955 requests currently being processed, 67 idle servers

cperciva
06-08-2002, 10:05 AM
1. You're getting a bit low on memory.
2. What is maxusers set to? You might want to increase it and recompile your kernel.
3. I still think that disk I/O might be an issue; can you show us the output of iostat?

bacid
06-08-2002, 11:22 AM
man.. with the amount of bandwidth you are pushing you must be making some serious cash :eek2:

blazenet
06-08-2002, 12:15 PM
... also depends on what he's serving ;)

But yes, 4MB/sec is nuts... I think at that rate, you will have to start thinking about a RAID-0 or sth, because your hard disk can't handle it anymore...

ClusterMania
06-08-2002, 09:16 PM
Originally posted by cperciva
1. You're getting a bit low on memory.
2. What is maxusers set to? You might want to increase it and recompile your kernel.
3. I still think that disk I/O might be an issue; can you show us the output of iostat?

1)I will consider getting 3-4 Gigs if ram on my next box.
2)I set maxclients to 3000 but it still won't go higher than 2022.
3)How do I do that?

I am also thinking about having all content go though http://www.acme.com/software/thttpd/ but nobody seems to have actual experience with it so I am afraid to try.

cperciva
06-08-2002, 09:36 PM
Originally posted by ClusterMania
1)I will consider getting 3-4 Gigs if ram on my next box.

Better check that it will be fully supported -- there tend to be problems of sorts once you get past 2GB.

2)I set maxclients to 3000 but it still won't go higher than 2022.

maxusers, not maxclients... I mean the kernel setting.

3)How do I do that?

SSH in, su to root, and then type "iostat" and press enter.

This might be better taken to PM or email.

Jake29
06-10-2002, 09:30 PM
I use thttpd. It's awesome. See it live at www.L2Host.com .

Jake

(Stephen)
06-10-2002, 09:50 PM
Mine does a max of 20, just because thats all I want on each server, and it still allows a nice profit.

why load up so many on each? Even if I wanted to host more clients I would do no more than 200 on each server, it's just so much easier on the support.
Instead of 2000+ emails IF the server goes down, you get a max of 200, and you keep more customers in the long run.

goodness0001
06-10-2002, 10:35 PM
I would totally agree with cluster, yes servers these days can hold tons of domains, but who wants to answer 1000 emails by apache crashing on 1 server?

davidb
06-11-2002, 12:03 AM
I would totally agree with cluster

You mean with amd???

Might want to look into a proliant, I loved em. 4 gigs of ram 320 gigs of space on one server. mmmmm

ClusterMania
06-11-2002, 02:53 AM
Originally posted by Jake29
I use thttpd. It's awesome. See it live at www.L2Host.com .

Jake

Can you post some stats of your server? I want to see how much server load it's doing.

Jake29
06-11-2002, 09:06 AM
Well, my loads are very very low... usually around 0.0 0.0 0.0. Partially this is due to the lightweight servers i use (thttpd, pureftpd, qmail)... this is partially due to the low amount of traffic... only had about .7 gigs in the last month or so.

Another cool thing I will mention is that i use thttpd supervised w/ djb's daemontools. This way, if my server ever crashes for any reason, it's brought back within 5 seconds. Very very smooth setup, w/ very little administrative hassle.

Jake

ClusterMania
06-11-2002, 10:00 AM
That's nice, I wish I knew how it would perform doing 3000-4000 request per second. Do you have apache doing all your php and cgi while thttpd doing static stuff? How did you configure it?

Jake29
06-11-2002, 10:06 AM
That's quite a load. I understand thttpd to be especially good at high load situations. As for cgi on my server, it goes through thttpd. I don't offer php. To use both servers together, you could have each one listen on different ip addresses. Put all static only/cgi customers on one ip w/ thttpd, all apache(php/modperl/whatev) on another. Just a thought. Again, i'm not making any recommendations about anything, just saying that i use it and it's fantastic for me.

You might want to move a few sites to thttpd and see how it works for you. The new 2.23beta is out... don't let the beta scare you... it's always beta. :)

Jake

ClusterMania
06-11-2002, 06:10 PM
Did you have any problems getting it to work?

Jake29
06-11-2002, 06:56 PM
Problems setting it up? Not at all- just follow the html-ized man page and the faq at http://www.acme.com/software/thttpd/ . It's a piece of cake. The only thing that is complicated is to set up cgi's w/a chroot environment. Just don't chroot if you use thttpd for cgi.. it's really not a safety hole, and more then using apache is :).

If you have any questions when setting it up, I'd be glad to help. PM me for my AIM screenname. Also, the thttpd mailing list is low volume but very active... great noise/signal ratio.

Jake

AcuNett
06-11-2002, 07:11 PM
20 clients on one server? :eek:

ClusterMania
06-11-2002, 07:24 PM
I only want thttpd to server all my media files such as movies and pictures. I want apache to still server the html, cgi and php. Last thing I want is millions of 404 errors and pictures not loading.


Total accesses: 5136954 - Total Traffic: 159.4 GB
CPU Usage: u1453.94 s11246.9 cu5.95313 cs5.73438 - 26.4% CPU load
107 requests/sec - 3.4 MB/second - 32.5 kB/request
1053 requests currently being processed, 511 idle servers

Is 1053 all html request of combined request for all files?