I have a static site and an 8GB RAM Server. The site would have just some javascript and static content. I need to handle about 20,000 concurrent visitors. Will my 8GB Server able to handle this ? Can anybody explain how to configure Apache MaxClients and other settings for this ?
feedback
|
migrated from stackoverflow.com Apr 8 '11 at 14:49
This question came from our site for professional and enthusiast programmers.
|
If you have money for enough bandwidth, just put nginx for serve static (js are static files). It can serve high numbers on 2G RAM + sata disk desktops, so it should fly with server hardware. Of course, do not use php + apache2 with mpm prefork, just to serve static content... or RAM will be a problem (and I/O, and context switching, and time waits, and... etc etc) Oh, and add cache headers for everything you can, being a static content server. If things are cached, I doubt you get 20.000 NEW requests each second... or in one day all the planet and part of the universe have seen your site. | |||||||
feedback
|
|
RAM isn't going to be your problem if all the files are just 'as-is' and static. Your bandwidth is what will really matter. 20,000 concurrent will need a hefty connection to send out those files. | |||||||
feedback
|
Make sure you have enough bandwidth, and test, test, test your setup before you make it available to the masses. | |||
|
feedback
|