jefe78 wrote:
I just inherited a project from an old friend. He has it on a 2Gb VPS at Slicehost. During peak times the server gets ~2,000 pageviews/second. Its a highly advanced Wordpress deployment with text heavy content(online newspaper type) that barely uses 3Gb of bandwidth a month.
Is that really pageviews/second? Let's say a pageview's data size (all components together) is only 5KB, which is probably much lower than reality. By my calculation, 3GB (I assume you mean bytes and not bits) of bandwidth would get used in under 300 seconds, and need a sustained outbound traffic rate of 80+ Mbps while occurring. I thought a Slicehost VPS was capped at 10Mbps, but maybe he had them raise his limit.
I guess that's certainly possible though 5 minutes of peak usage each month seems a little unusual - what happens the rest of the time?
Anyway, the short answer though is that there is plenty of tuning that can be done, in terms of appropriate apache configurations, proxying static content with other servers (like nginx), caching at the PHP or Wordpress level, or other ways of running PHP servers. You should be able to find several discussions here in the forums. One of the recent discussions that might give you some ideas is at
http://www.linode.com/forums/viewtopic.php?t=6272
Your best bet is probably to grab a Linode for testing and just see how his particular configuration runs. You could start with a large Linode and work down, or from the bottom up. If he really does need to meet 2000/s peak load, I don't think the smallest plans will work, so I'd probably start with a 1024.
Assuming he's using a 64-bit build under Slicehost (though they've offered 32-bit more recently) I expect a 32-bit build under Linode would work on a smaller plan.
Oh, and BTW, it wouldn't surprise me to find that some of the apache tuning discussions here are just as applicable to his Slicehost configuration and might help improve current reliability under load as well.
-- David