Why setup a firewall when it's hosted on ec2? It's all firewalled off by default.
10 Million hits a day with Wordpress using a $15 server
41–50 of 115 posts
Re: 10 Million hits a day with Wordpress using a $15 server
#42Earlier quoted context omitted.
Your VCL ignores the fact that logged in users are going to have cookies and every request would then be piped to your backend. Stripping off the right cookies will allow those requests to be cached. https://www.varnish-cache.org/trac/wiki/VCLExamples At the bottom are some example templates that are a bit more tuned for production sites and are in use on some relatively large WordPress sites - last August, they clai…
Thanks - I half knew about the cookies, but didn't worry about them as most people going to my site (or most other blogs) won't actually be logged in. Didn't touch shmlog configuration, or threading - everything I changed is on the post. I tried to keep it simple enough, in the end Varnish alone is probably enough for 99% of people. You're right though, I should look at those VCL examples you posted, and thanks for t…
Re: 10 Million hits a day with Wordpress using a $15 server
#43Re: 10 Million hits a day with Wordpress using a $15 server
#44Now, with 11% more hits! :)
Re: 10 Million hits a day with Wordpress using a $15 server
#45Re: 10 Million hits a day with Wordpress using a $15 server
#46And then I take a look at this blog post that lists all the incantations necessary to scale Wordpress to reasonable scale and I wonder why anyone should do this.
If you're setting up your own server, installing nginx, configuring PHP, and doing automated load testing, maybe you should also consider rolling your own software or using a different package that isn't supremely bloated.
Re: 10 Million hits a day with Wordpress using a $15 server
#47Will the bandwidth not cost way higher on AWS than the $15 mentioned?
Mmm, your right it'll cost something, though AWS free tier covers 15GB per month of bandwidth, then 12 cents per GB after that, so I'd expect it to be a few $. Obviously though, there's cheaper options than AWS out there - Linode include 200GB of transfer per month in their $20 option. I mostly just used AWS because I could start the server, build it, and blow it away, then restart, all without any hassles or full mo…
As long as you aren't serving lots of images, this will keep you well below $20/month - even with large amounts of traffic.
If you are serving lots of images, or worried about excessive bandwidth: Linode gives you 20GB/200GB (storage/bandwidth) on a 512MB server for $20, and MediaTemple gives you a 512MB server with 20GB/350GB for $30 (a little cheaper if you are going to be in the 300GB range when you consider Linodes .10/GB for overages).
Re: 10 Million hits a day with Wordpress using a $15 server
#48The hallmark of Wordpress is ease of use. That's why you can spin up a blog right on their site, and they have a backend designed by Happy Cog. Wordpress is blog software for the technically illiterate. And then I take a look at this blog post that lists all the incantations necessary to scale Wordpress to reasonable scale and I wonder why anyone should do this. If you're setting up your own server, installing nginx,…
Re: 10 Million hits a day with Wordpress using a $15 server
#49This feels a bit like my "9 million hits per day" article from a while back: http://tumbledry.org/2011/08/31/9_million_hits_day_with_120 & http://news.ycombinator.com/item?id=2945185 Now, with 11% more hits! :)
I knew I'd seen a similar post in the past, but couldn't find it.
Re: 10 Million hits a day with Wordpress using a $15 server
#50Had he run the Blitz test for 10 mins or more you would see the spike in traffic up, beyond what you think a Micro should sustain, and then it plummet to near 0 for a disturbingly long period of time[1].
If you are unlucky enough to have a Micro on a host that is fairly saturated, the performance you get is untenable.
Micro's are not "smaller than" Smalls -- they are a different type of monetization production from AWS allowing you to pay cheaply for little bursts of underutilized hardware.
There is no way (none... not possible, zero) that a Micro would be able to provide the bandwidth and CPU power to host a realistic site doing 10 million hits a day even if everything was straight from RAM.
Read through the EC2 forums for any length of time and you'll frequently find people coming in with reports of their machines "stopping" or "crashing, and totally inaccessible" for minutes at a time with a 100% ST ratio; every time it is a Micro that has been hammer for a bit either through benchmarking or use before the hypervisor puts it in a full nelson and brings it down to the point that SSH connections to the host cannot even be maintained.
-- I would also point out that not only is the CPU time allocated in bursts for a Micro, but the bandwidth is prioritized behind every other instance type (unless you were using a CDN, this would make hosting a typical wordpress site sluggish at best from a Micro -- and again, doing 10 mil hits a day... not going to happen in reality) -- yes you can offload all your graphical assets to a CDN, but now this article is about a $15/mo server and a $4217/mo CDN bill which is a very different article.
Additionally, if you need to use EBS at all in here, the story gets even worse with Micro's (even using something like RDS which requires network I/O in addition to hosting site content is all going to collapse on itself within the first 5 mins of the site's life with traffic like that).
All that said, the tips in the article are great. I only mean to clarify expectations with the use of Micro's. A whole swarm of them grinding through a work queue in random order is great; using them as the backbone of your web presence will have pain points. (Yes you can put 20-50 of them behind an ELB, but at that point why not run a handful of Mediums or a few Larges).
Anyone with a Blitz.io account, please feel free to setup this exact configuration and run the benchmark for 1hr with the same load to verify the meltdown.
[UPDATE] Ewan, I am not knocking your article, I wouldn't expect most people to be familiar with the ins and outs of every cloud provider. The tips and techniques are great regardless of the actual performance on a Micro (and applies to anyone trying to scale WordPress). Just wanted to clarify for anyone getting excited that they can now run their Fortune 500 website on a single AWS Micro that there are nasty surprises lurking just under the surface.
[1] http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/co...