Total Geek Thread

Charles Johnsonfollow me on twitter
Wed Apr 2, 2008 at 12:13 pm PDT • Views: 212

Hey, anyone notice how much better LGF is behaving? The hamsters haven’t even hiccuped all week, and response time is greatly improved overall. The Safari browser has a cool Web Inspector that shows all kinds of stats about a web page as it loads, and it reports that loading the main LGF front page is now more than twice as fast, even at peak traffic times.

Geek stats: in the three days since I tweaked and restarted MySQL, 76.4% of the database queries have been served from the query cache. Huge savings there.

More huge savings from connection pooling, although that’s harder to measure. But the snappier response time is largely due to the fact that the most common database connections are able to take place without actually opening a new connection.

The real key to this, however, was installing a small cron job on the database server that monitors “sleeping” MySQL processes, and kills any that exceed the maximum persistent connection timeout. This is necessary because some MySQL processes live on past their scheduled timeout, and unless you cull the zombie herd periodically, they will pile up and choke the server. Let it go for a few hours, and they max out the possible MySQL connections. Then you have trouble.

More geek stats: in the 3 days the MySQL server has been up, it has served 65 million queries, out of which only 287 were “slow” — in other words, took more than a few seconds. Efficiency of key usage: 99.9%.

Advertisement

189 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Account Settings Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► LGF Hits

► Resources

► Never Forget

► Statistics

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Reasonably competent computer enthusiasts.

TwitterFacebook
LGF Pages
Recent Pages

No. Just, no.
The least romantic city in the US
3 hours, 20 minutes ago
Views: 61 • Comments: 1
Tweets: 0 • Rating: 0

No. Just, no.
Psycho jerk was psycho
3 hours, 41 minutes ago
Views: 61 • Comments: 1
Tweets: 0 • Rating: 0

researchok
Forrest GOP
5 hours, 35 minutes ago
Views: 78 • Comments: 0
Tweets: 2 • Rating: 1

researchok
Obama Plan Will End Dozens of Business Tax Breaks
6 hours, 43 minutes ago
Views: 95 • Comments: 0
Tweets: 1 • Rating: 1

Randall Gross
NBCU Taps Google to Create Cross-Platform Audience Metric for 2012 Olympics
7 hours, 30 minutes ago
Views: 79 • Comments: 0
Tweets: 0 • Rating: 2

Randall Gross
Exclusive: Church Probes How Priest Was Ordained After Abuse Sacking - Main Section - Yorkshire Post
7 hours, 34 minutes ago
Views: 98 • Comments: 0
Tweets: 0 • Rating: 2

Randall Gross
Santorum's Stone-Age View of Women
7 hours, 35 minutes ago
Views: 150 • Comments: 0
Tweets: 1 • Rating: 2

Channeling Confucius
The Dogs Against Romney Facebook group tries to put on an IRL protest against the Republican outside the Westminster Kennel Club
7 hours, 45 minutes ago
Views: 90 • Comments: 0
Tweets: 0 • Rating: 0

Bob Dillon
Hidden Communal Guns Are More Common
8 hours, 9 minutes ago
Views: 125 • Comments: 2
Tweets: 0 • Rating: 3

Daniel Ballard
Barack Obama says preventive care 'saves money'-No It Does Not
8 hours, 54 minutes ago
Views: 426 • Comments: 74
Tweets: 3 • Rating: 2

 Frank says:

I was writing all kinds of positive and negative canons and weird inverted this and retrograde that and getting as spaced-out mathematically as I could and I was going "Wait a minute (laughs), who cares about that stuff?" I had always liked rhythm and blues so here I was stuck between the slide rule and the gut bucket somewhere and I decided that I would opt for a third road someplace in between. -- From an 1972 interview to Martin Perlich. On giving up writing serial music.