Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Oct 12, 2010 12:52 am 
Offline
Junior Member

Joined: Fri Aug 27, 2010 4:42 am
Posts: 48
What do you think the limits are for a Linode 768 running Apache when it comes to MaxClients and MaxServers?

I had mine set to 150 but I am now receiving at times upto 400-500 concurrent visits to a site hosted on my linode.....

This of course is not all the time this is just during peak traffic times and during times when my site gets lots of attention on StumbleUpon or Digg.


Top
   
 Post subject:
PostPosted: Tue Oct 12, 2010 10:30 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Have you considered lighttpd or nginx? They handle large numbers of concurrent users with much less config tweaking.


Top
   
 Post subject:
PostPosted: Tue Oct 12, 2010 11:19 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
apache does just fine too with minimal configuration.


Top
   
 Post subject:
PostPosted: Tue Oct 12, 2010 3:58 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
One thing to understand: Serving 50 requests in parallel FAST is better than trying to serve 500 requests in parallel slowly. In first case more requests will "wait in queue", but they'll wait a tiny fraction of second; in latter, they may be stuck for a second or more, causing the queue to build up and explode.

Seriously, get apache-worker with maybe 100 "minimum" threads and burstable to 250 or so, and set up number of your dynamic content handlers appropriately lower (50 or less). Most of your requests should be for static data like images, so the real "narrow throat" (and also, the main memory eater) are the php/python/whateveryouwilluse handlers.


Top
   
 Post subject:
PostPosted: Tue Oct 12, 2010 5:34 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
If you don't use mod_php, 150 is OK, but I wouldn't increase it any further. But if you don't use mod_php, there really isn't any reason to use Apache in the first place. Both lighttpd and nginx can serve static files to 10K+ clients at a time without breaking a sweat, and any dynamic stuff (PHP, Rails, Django) would run as a separate process anyway.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group