We're hitting our server limits this week
Posted: Mon Oct 16, 2017 1:02 pm
While working on the recent maintenance issues, I realized that we've maxed out our server for the moment.
In order to keep the costs for this site low ($30/month for everything), we run on an Amazon t2.micro "burst" server. This is normally quite fast for a cheap server, but this is because it has certain number of "CPU Credits". Once it runs out of CPU credits, it slows down tremendously. This makes sense for a small site like ours, because we want pages to load quickly, but we're not serving 100s of requests per second day in and day out.
Which brings me to Yandex, which is apparently a Russian search engine or something. It was crawling our site at high speed, and it used up all of our CPU credits. Here's the graph of our balance over the last day and a half:
Oops. Well, I've banned Yandex, and I'm going to tell some other search engines to put the brakes on, and we'll see if that helps.
In the longer run, we could upgrade from a t2.micro to a t2.small:
This would take our current monthly costs of US$30/month, and raise them to about $45:
Or we could be be really extravagant and consider an m3.medium, which doesn't have "burst mode" CPU credits, and which can't fall off a cliff. But it's more expensive, and probably massive overkill.
So I'm going to try to tweak the robots.txt file a bit to slow down the crawlers, and see if the problem goes away. Cross your fingers.
In order to keep the costs for this site low ($30/month for everything), we run on an Amazon t2.micro "burst" server. This is normally quite fast for a cheap server, but this is because it has certain number of "CPU Credits". Once it runs out of CPU credits, it slows down tremendously. This makes sense for a small site like ours, because we want pages to load quickly, but we're not serving 100s of requests per second day in and day out.
Which brings me to Yandex, which is apparently a Russian search engine or something. It was crawling our site at high speed, and it used up all of our CPU credits. Here's the graph of our balance over the last day and a half:
Oops. Well, I've banned Yandex, and I'm going to tell some other search engines to put the brakes on, and we'll see if that helps.
In the longer run, we could upgrade from a t2.micro to a t2.small:
This would take our current monthly costs of US$30/month, and raise them to about $45:
Or we could be be really extravagant and consider an m3.medium, which doesn't have "burst mode" CPU credits, and which can't fall off a cliff. But it's more expensive, and probably massive overkill.
So I'm going to try to tweak the robots.txt file a bit to slow down the crawlers, and see if the problem goes away. Cross your fingers.