I currently have 3 web servers, each dual 2.4 xeon's with 6 gig of ram, all
load balanced.  However, I am expecting anywhere from 2000 to 4000 users on
my servers at any given time within the next few weeks, therefore I am
trying to make apache more efficient.  It would be nice to make each server
handle 1000 requests.

Darryl

-----Original Message-----
From: Rick Johnson [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 02, 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Apache Help

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joseph A Nagy Jr wrote:
| Delao, Darryl W wrote:
|
|> Ya, if you try to put it over 256, it will set it back to 256 on the next
|> reboot.  I have not tried setting the max clients yet.  If I wanted 1000
|> users at once on my machine, do I set the max clients to 1000?  If so,
|> wouldn't the 256 still hurt me?
|>
|> Darryl
|>

Within the spec itself, I don't see any "limits" configured in. However -
within %tree%/server/mpm/prefork/prefork.c, you'll notice that
DEFAULT_SERVER_LIMIT is set to 256 if a different definition isn't passed at
compile time. It also has a MAX_SERVER_LIMIT of 20000. You'll either need to
modify the source or pass a compile-time definition for
DEFAULT_SERVER_LIMIT. You could do this within the source or the SPEC, or
just compile it yourself.

Note - Red Hat's Apache still uses the prefork MPM for greater
compatability. If you do choose to recompile, you may want to try
recompiling Apache using the worker mpm (the RPM spec for 2.0.40 defaults to
prefork). This may allow the greater scalability that you're looking for.
Note - the limit for worker.c is only 16 servers, but remember that each
server can launch up to 64 threads by default (can also be increased at
compile time), which would yield 1024 simultaneous connections/users. I
would suspect your machine would be crawling to a halt by this point. Unless
you have a really beefy machine, I'd advise you to consider multiple servers
w/ load balancing.      

Hope this helps,
- -Rick
- --
Rick Johnson, RHCE - [EMAIL PROTECTED]
Linux/WAN Administrator - Medata, Inc.
PGP Public Key: https://mail.medata.com/pgp/rjohnson.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Signed and/or encpryted for everyone's protection.

iEYEARECAAYFAj3rth8ACgkQIgQdhlSHZgNitgCdHL5OnUvHndmD1usjvHm9KZYp
5l0AoIDnC8K068KwamBWerKxGCzZzTUU
=2HUZ
-----END PGP SIGNATURE-----



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to