Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Recommended Apache Configuration
Old 01-10-2010, 06:34 AM Recommended Apache Configuration
iceman2000's Avatar
Average Talker

Posts: 24
Trades: 0
Hello,

Need some help in understanding what do each config item listed mean and how do they relate to each other.

I am using apache 2.2.

Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 250

Seocondly, I would also like some help in configuring apache so it could serve 1000 concurrent users across all websites (3) hosted on the server.

Processor: Pentium 4 3GHZ DUAL CORE
Memory: 2GB PC3200
Hd1: 120GB 7200RPM SATA / 8MB Cache
Hd2: 120GB 7200RPM SATA / 8MB Cache

Thanks.

Last edited by iceman2000; 01-10-2010 at 06:35 AM..
iceman2000 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-10-2010, 11:15 PM Re: Recommended Apache Configuration
andrei155's Avatar
CEO of BLD Hosting

Posts: 1,514
Name: Andrei
Location: Canada
Trades: 6
Try this out:

Code:
Timeout 30

StartServers       3
MinSpareServers    2
MaxSpareServers    5
ServerLimit        200
MaxClients         200
MaxRequestsPerChild  4000

KeepAlive off
__________________
No Overselling Guarantee
Now Includes a Free Domain
BLD Hosting -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
andrei155 is offline
Reply With Quote
View Public Profile Visit andrei155's homepage!
 
Old 01-11-2010, 01:26 AM Re: Recommended Apache Configuration
iceman2000's Avatar
Average Talker

Posts: 24
Trades: 0
Thanks andrei155.

In your suggestion, you have increased MaxClients and MaxRequestsPerChild. Whats the relationship between MaxClients and MasRequestPerChild?

You are also suggesting to switch off KeepAlive, why is that?

Thanks for your help
iceman2000 is offline
Reply With Quote
View Public Profile
 
Old 01-11-2010, 02:30 AM Re: Recommended Apache Configuration
andrei155's Avatar
CEO of BLD Hosting

Posts: 1,514
Name: Andrei
Location: Canada
Trades: 6
Basically, MaxClients tells apache the maximum number of requests it's going to handle at once. In this case, I set it to 200. Connections over the specified limit are going to be queued.

MaxRequestsPerChild tells you the amount of requests (or connections) that each apache child is going to process before it's killed.

Since you want quite a few connections at once (you mentioned 1000), I turned keepalive off and decreased timeout. That way, pending connections will clear up faster - and it'll prevent your "MaxClients" or "Serverlimit" from maxing out.
__________________
No Overselling Guarantee
Now Includes a Free Domain
BLD Hosting -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
andrei155 is offline
Reply With Quote
View Public Profile Visit andrei155's homepage!
 
Old 01-11-2010, 02:53 AM Re: Recommended Apache Configuration
iceman2000's Avatar
Average Talker

Posts: 24
Trades: 0
andrei155 Thanks.

One last question, you mentioned that 'pending connections will clear up faster', will they be served within the specified timeout or just die?
iceman2000 is offline
Reply With Quote
View Public Profile
 
Old 01-11-2010, 08:48 PM Re: Recommended Apache Configuration
andrei155's Avatar
CEO of BLD Hosting

Posts: 1,514
Name: Andrei
Location: Canada
Trades: 6
Ideally, connections are going to be served. Of course, since we decreased timeout - some connections may be dropped. However I do think that 30 seconds is enough time for any connection.
__________________
No Overselling Guarantee
Now Includes a Free Domain
BLD Hosting -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
andrei155 is offline
Reply With Quote
View Public Profile Visit andrei155's homepage!
 
Reply     « Reply to Recommended Apache Configuration
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34646 seconds with 12 queries