Just a quick note to let everyone know that the site has been partially migrated to the new server. That is to say that the database is now running on the new big daddy machine, although the Web server is still on the old machine. (If you’re a new subscriber you can select the “Digg” related tag below to see the history.)
For those of you who may have been refraining from Digging articles in order to help me keep the server running – Thanks! And it should no longer be necessary! The new configuration should handle a traffic spike from Digg now (fingers crossed), and it’ll be even better in a day or two when everything gets entirely moved to the new machine.
So, at this point nothing would please me more than to see all the articles getting Dugg again. :-)
John
PS – Thanks for everyone’s patience as the site goes through the growing pains!
Query caching is easy to setup and only needs some simple steps:
1.) Check your MySQL version (“SELECT VERSION()”) and stop with a version prior 4.0.1
2.) Check if this feature is available with the query “SHOW VARIABLES LIKE ‘have_query_cache'”; The result should be yes.
3.) Check the size of the cache with “SHOW VARIABLES LIKE ‘query_cache_size’;” the value has to greater than 0 for enabling caching.
4.) There are two ways to set the cache size: on for the time the server is running: “SET GLOBAL query_cache_size = {SIZE_IN_BYTES};” and the other is setting the size in the server’s configuration file. Lookup for the my.cnf file, probably in /etc of /etc/mysql and add to the section ‘[mysqld]’ a line like
query_cache_size={SIZE_IN_BYTES}
After restarting the mysql server caching should be enabled.
These hints are for a mysql server running under linux, but will work also with Microsoft Windows as the operating system.
This page generated with 44 queries, in 0.312 seconds.
Yep, things are rockin’ now. Thanks for that MySQL heads up; I wonder if my host uses it on my site.
As the first action to improve the performance on the new server I activated the query cache of MySQL. With query caching the time consuming execution of SELECT statements could increase up to 200%. This feature is available from MySQL version 4.0.1 on.
Ok. We’re definitely on the new server now! Currently here is what I’m getting:
This page generated with 87 queries, in 0.489 seconds
That makes the new server literally almost 20 times faster!
Bring on the Diggs! :-)
John
Peter,
I’m not totally sure what is causing the slowdown, but I am aware of a few things:
Although the pages are taking time to generate they are all being cached via WP-Cache so hopefully most people are getting them delivered much quicker. You can tell if you’ve got a cached version by viewing the source code and looking at the very bottom line.
I believe Roy is going to have everything finished in the next day or two and after we switch the DNS over hopefully you’ll see those page generation times drop dramatically. I would think that going from a single 2 Ghz Celeron processor to dual AMD 64bit processors with 4X the RAM would make a huge difference. :-)
John
Something is still slowing down this site. When I first came here, your load time was:
This page generated with 87 queries, in 9.525 seconds.
To load this comment page it was:
This page generated with 39 queries, in 4.583 seconds.
87 queries? Wow…is it all the widgets you run or just WP’s “code is poetry” bloat showing its inefficient colours?