3 ms·
512 MB Slicehost VPS: $38 Wordpress.org software: $0 Knowing that your blog can end up on top page of Reddit and HN simultaneously without slowdown or swappin
by patio11 18y ago
512 MB Slicehost VPS: $38
Wordpress.org software: $0
Knowing that your blog can end up on top page of Reddit and HN simultaneously without slowdown or swapping: priceless.
(Though I'm sort of glad that I decided to put the blog on its own VPS "just in case". As in "just in case it gets burned into ashes by a traffic spike, the people who actually pay me money will be completely unaware of my technical difficulties happening on the other server").
- callmeed 18y agoI assume you had a WP caching plugin installed?
- patio11 18y agoNope. Previously a few of my other PHP sites had problems under load on the same box (GoogleBot, or something identifying itself as GoogleBot, went wild once with 100k requests in a day and the Apache child spawnage caused the machine to swap, starve, and die). I bumped it up to 512 MB ($250 a year extra cheaper than irked users emailing me) and added the following to httpd.conf, on the advice of some Slicehost-related blog post or forum thread or something, can't remember. http://www.pastie.org/410707 http://www.pastie.org/410707 No problems since. (I was watching on top through the night, and while the CPU was spiking up to 25 ~ 50% the memory usage never exceeded 400 MB, and it ended up not using so much as a kilobyte of swap.)
- aristus 18y agoI would make MaxRequestsPerChild nonzero, something like 3000 to 10000. Even Yahoo, which employs the creator of PHP and several Apache committers, restarts their Apache children every 8 hours. Otherwise you are making yourself vulnerable to memory leaks or bugs that might take weeks to manifest. I would also bump up MaxClients. If it's too low you will refuse connections under load and never know it -- there will be no records in your logs.