3 ms·
> Apache has a habit of taking down memory-constrained VPSes when hit by large amounts of traffic Give Nginx a spin if you can. I use 300MB VPSes running Ngin
by jolan 16y ago
> Apache has a habit of taking down memory-constrained VPSes when hit by large amounts of traffic
Give Nginx a spin if you can. I use 300MB VPSes running Nginx + PHP and have memory to spare to run the dropbox daemon, lightly loaded mysql, etc.
- deleted 16y ago[deleted]
- patio11 16y agoYep. Sometime after this interview I figured out what my Apache configuration problems were. The short version: KeepAlive, which might as well be called as TurnThisOnToBlockThisServerTotallyEveryTimeYourSiteAppearsInSocialMedia.
- pvg 16y agoThere's also just tossing a reverse proxy in front of your apache, it hands the problem of slow requests, bad requests, KeepComatose, etc to something lightweight that's a lot more crap-tolerant. http://joshua.schachter.org/2008/01/proxy.html http://joshua.schachter.org/2008/01/proxy.html The simpler of these (e.g. pound) take about as much time to set up as scrolling through your apache config looking for some mis-set option.
- alnayyir 16y agoOne task to a machine can save a lot of trouble, ie, not having the database on the local app server + having varnish + nginx in front of it.