Comment

Server Issues Open Thread

46
Charles11/02/2012 1:45:09 pm PDT

Well, looks like the method I’m using to poll the server to find the number of new comments, and the pageviews and Twitter clicks, is going to have to be re-designed. When we get hit with a surge of traffic from somewhere like Reddit or Facebook (today we had both), the repeating Javascript code that runs every five seconds, in every logged in user’s browser, is causing logjams in the database.

Under normal traffic it works fine, but when there are suddenly thousands more people trying to get in the connections start piling up. As soon as I disabled that repeating script, things started running just fine.

So, I have a plan to fix it.