LGF Technical Update - Infrastructure Improvements

• Views: 1,538

Just to keep things interesting, I’ve changed the way our Ajax news feeds are displayed when you load an LGF page. Previously, the default news feed was Yahoo’s ‘Top Stories’ feed. Since this gets stale pretty quickly, now the first news/blog feed that appears when you load a page is chosen at random from the list. So one page load you might see The Corner, and the next, the Daily Kos.

(LGF is not responsible for ideological whiplash injuries suffered from unsupervised reading of news feeds, of course.)

Also, when you pick a different feed from the drop-down menu, while the Ajax back-end system goes out and fetches it, the message “Loading…” is displayed. Just to keep things all nice and informative. I’m into feedback.

In the not-visible-but-important category, I made a couple of large changes in the LGF Blog Engine that, under normal operating conditions, will greatly improve the performance of the site for most lizards. The registration system was designed in the Jurassic Era of LGF, without thought for scaling to 3 million plus visitors a month, and it was making our server’s hard disk do waaaaay too much work. That disk thrashing has now been reduced by a factor of 20 or more, by our new session-based authentication code.

To further decrease server load, another bottleneck has been eliminated in our statistics display. The ‘visitors online’ count was previously generated during each page load; now it’s cached at one minute intervals by a cron job. Instead of thousands of directory reads every minute, it’s now down to one. (The ‘visitors online’ count works by counting the number of active PHP session files.)

If an LGF post hits the Digg front page, or the Drudge Report, or some other huge-traffic site, these improvements are like origami in a hurricane; in that case our single server just can’t give out connections fast enough, and we’ll still slow down and possibly crash. But as I said above, under normal conditions these improvements should make comment posting and overall site performance significantly better.

For longer-term performance issues, our second server isn’t online yet, but the infrastructure is being readied.

UPDATE at 2/24/07 6:50:38 pm:

Quite a few people have reported a problem where the ‘Digg’ link at bottom left of each post seems to lead to the wrong page at digg.com.

Unfortunately, this isn’t something I can fix; that little Digg button area is created by code that comes from Digg, and I’ve verified that I’m passing it the proper parameters. Their code seems to have a caching problem in some browsers; I’ve never seen this happen in Safari.

Jump to top

Create a PageThis is the LGF Pages posting bookmarklet. To use it, drag this button to your browser's bookmark bar, and title it 'LGF Pages' (or whatever you like). Then browse to a site you want to post, select some text on the page to use for a quote, click the bookmarklet, and the Pages posting window will appear with the title, text, and any embedded video or audio files already filled in, ready to go.
Or... you can just click this button to open the Pages posting window right away.
Last updated: 2023-04-04 11:11 am PDT
LGF User's Guide RSS Feeds

Help support Little Green Footballs!

Subscribe now for ad-free access!Register and sign in to a free LGF account before subscribing, and your ad-free access will be automatically enabled.

Donate with
PayPal
Cash.app
Recent PagesClick to refresh
The Pandemic Cost 7 Million Lives, but Talks to Prevent a Repeat Stall In late 2021, as the world reeled from the arrival of the highly contagious omicron variant of the coronavirus, representatives of almost 200 countries met - some online, some in-person in Geneva - hoping to forestall a future worldwide ...
Cheechako
5 days ago
Views: 156 • Comments: 0 • Rating: 1
Texas County at Center of Border Fight Is Overwhelmed by Migrant Deaths EAGLE PASS, Tex. - The undertaker lighted a cigarette and held it between his latex-gloved fingers as he stood over the bloated body bag lying in the bed of his battered pickup truck. The woman had been fished out ...
Cheechako
2 weeks ago
Views: 322 • Comments: 0 • Rating: 1