Total Geek Thread

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

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? 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

► 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.

Would you like fries with that?

TwitterFacebook
LGF Pages
Recent Pages

Randall Gross
Mitt Romney: Little to Like: DNC Spoofs Romney Facebook Timeline
1 hour ago
Views: 41 • Comments: 0
Tweets: 0 • Rating: 0

researchok
French Philosopher Alain Badiou on the Real Expression of Love: 'If You Limit Yourself to Sexual Pleasure It's Narcissistic'
5 hours, 9 minutes ago
Views: 69 • Comments: 0
Tweets: 0 • Rating: 0

Haywood Jabloeme
Closing the Racial and Generational Divides
8 hours, 58 minutes ago
Views: 79 • Comments: 0
Tweets: 0 • Rating: 1

Channeling Confucius
The International Response to Syria After the Houla Massacre
10 hours, 51 minutes ago
Views: 89 • Comments: 0
Tweets: 0 • Rating: 0

Aziz Poonawalla
I Speak for Myself: All-American
12 hours, 55 minutes ago
Views: 123 • Comments: 0
Tweets: 0 • Rating: 5

Aigle
Mainliners Speak Truth to Jewish, Not Arab and Muslim Power
17 hours, 11 minutes ago
Views: 338 • Comments: 11
Tweets: 0 • Rating: -5

Mostly sane, most of the time.
So wake up and notice already
2 days, 8 hours ago
Views: 289 • Comments: 0
Tweets: 2 • Rating: 7

Daniel Ballard
Late Afternoon Light-Kalanchoe
3 days, 12 hours ago
Views: 265 • Comments: 0
Tweets: 0 • Rating: 5

Eclectic Infidel
City College of San Francisco Budget Update
3 days, 13 hours ago
Views: 311 • Comments: 0
Tweets: 0 • Rating: 2

MichaelJ
Apple TV Slated to Debut in December?
4 days, 19 hours ago
Views: 368 • Comments: 0
Tweets: 0 • Rating: 1

 Frank says:

Don't it ever get lonesome?