Web Hosting Talk







View Full Version : apache max clients question


matt2kjones
04-10-2004, 10:19 AM
Well i run "The Linux Mirror Project" and have done so for the past few months now.

anyway, the past week, downloads, any any one time, have gone into 4 digit numbers, and i have a question about apache.

What we do, is mirror linux distributions over bit torrent, so our apache isn't actually servering the files.

Now, the bit torrent tracker, is running over apache. Now each user, who is conencted to the tracker, and downloading a distro, will connect to apache approx every 10 minutes.

so if there is a connection, say once every 10 secs, to grab about 1k of data, maybe 2k, would apache, if set to max clients of 2048, be able to allow 20,000 users connected to the tracker, if each user connects once every 10 mins.

its not a question of will the hardware support it, we have that sorted, its more of a question of will 2048 max clients support 20,000 users connecting once every 10 mins (they will be at random times not all together).

also, when i last compiled the kernel, it asked for max file descriptors, now, thats the maximum amount of files you can have open per process isn't it?

well it said enter a number between 256 - 2048, is there no way to compile the kernel for say, 8000?

thanx

nightwalker
04-10-2004, 11:32 AM
You can also set those values using /etc/sysctl.conf

I use:
/etc/sysctl.conf
fs.file-max = 65535

Then type 'sysctl -p' to load the value.

-- Matthew


Originally posted by matt2kjones
also, when i last compiled the kernel, it asked for max file descriptors, now, thats the maximum amount of files you can have open per process isn't it?
well it said enter a number between 256 - 2048, is there no way to compile the kernel for say, 8000?
thanx [/B]

matt2kjones
04-10-2004, 11:45 AM
thanx for that....

i didn't no, i thought you had to recompile the kernel to change it

wow, thats really handy to know, thanx

datums
04-10-2004, 12:51 PM
Also if you are looking for a faster webserver to do minimum HTTP/1.1.

You might want to take a look at
http://www.acme.com/software/thttpd/

Steven
04-10-2004, 02:25 PM
i agree thttpd sounds like it would be good for this, small footprint and its fast!

matt2kjones
04-10-2004, 02:37 PM
thttpd doesn't support php tho does it?

(the tracker is php + mysql)

look on the thhpd site but couldn't find into on thttpd + php anyway

thanx for all the replies :)