alex wrote:
after spending the entire weekend and most of today working on this issue, I think I have been able to optimize the site, the databases, and the database queries in such a way that this won't happen anymore.
The database is run off of just one server but that server is a dual core machine running FreeBSD so it's very stable and fast.
However, all of the connection problems were the result of too many people posting at the same time which had been causing database deadlocks. I switched the users, posts, topics, and forums tables to a more robust table storage engine (innodb instead of MyISAM) and there have been no more deadlocks (that i've witnessed) since the conversion. The conversion occurred sometime this afternoon.
If the deadlocks persist, I will further optimize the queries that have been causing them (which will only affect forum statistics listed under the "number of views" etc columns.)
As of thursday or friday, all images (except for most of the avatars) are now being served from one of 11+ internationally based data centers so the main server no longer needs to deal with those. You are automatically connected to the datacenter closest to you (for instance, australian users download from australia, UK users download from london, asian users download from tokyo, west coast users download from california, canadians download from either canada or usa depending on which center they're closer to, etc).
This should mainly benefit international and non east coast USA members. And members won't even notice that this is happening (aside from everything happening faster). The process is seamless and robust.
In short: No more Error Messages hopefully!!
_________________
I was sad when I found that she left
But then I found
That I could speak to her,
In a way
And sadness turned to comfort
We all go there