The server got overloaded in two ways;
1) Way, waaay too much traffic and too many connections
2) Way, waaay too much cpu usage.
For the traffic, I did this:
I moved all the game binaries out to an Amazon S3 cloud thingie. This scales easily with out needs, and even has support for a CDN in Amazon CloudFront. A CDN (Content Delivery Network) is basically a bunch of servers all over the world which redirect so you download the files from the server nearest to you.
I havent been able to move the resources (sounds and music yet) because those used a rather ridiculous auto updating scheme that was different from the rest of the game. I will fix this today.
Minecraft Classic is also offline for the time being since I wasnt able to get it to download from the S3 easily. I will try to get this up today as well, but I cant promise anything there. It is coming back, though.
For the CPU load, I did this:
The problem was that I had written my own database early on before I even had decided to sell the game yet, and it kind of stuck around. I sat down and set up a proper RDB database (mysql). Currently, this is also running via Amazon Cloud.
The first version of the DB hit the CPU cap pretty fast until I realized I could scale it up to a much faster database with just a couple of clicks. Now its currently configured to be quite a bit faster than we actually need, but since I like the idea of actually having MORE power than needed somewhere, Im keeping it that way for a few days.
Pending payments:
After I temporarily took out the sound and music updating, the website got a lot faster, but before that payments were queuing up, so it could take quite some time for some people to actually get their game after they bought it.
What happened is that paypay tried to send the notification immediately, but when the system is busy, it adds the notification to an internal queue in paypals system, and resends it after a short period of time. If it fails a SECOND time, it increases the counter and tries even later. So if you got unlucky, it could time out three times in a row, and youd have to wait a fairly long time. All the payments are still secure, but they just didnt get processed immediately.
If you bought the game and didnt receive it immediately, Im sorry to keep you waiting. Please wait until tomorrow or so before contacting us, though.. Were getting a LOT of emails about accounts that have already been updated automatically when we check them.
Future updates:
TkTech is pretty much done with his rewrite which will give minecraft.net a much more modern codebase. Well set that version up on a separate server and test it, then cut over when it works. We might need help testing it, and then I thought I might ask you guys to help out, if you dont mind. :-D