<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dr. Scott M. Baker &#187; mysql</title>
	<atom:link href="http://www.smbaker.com/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.smbaker.com</link>
	<description>Scott&#039;s project and hobby site</description>
	<lastBuildDate>Sun, 25 Sep 2011 18:26:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>More wordpress benchmarks on godaddy hosting</title>
		<link>http://www.smbaker.com/more-wordpress-benchmarks-on-godaddy-hosting</link>
		<comments>http://www.smbaker.com/more-wordpress-benchmarks-on-godaddy-hosting#comments</comments>
		<pubDate>Wed, 03 Feb 2010 01:12:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[web publishing]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.smbaker.com/wordpress/more-wordpress-benchmarks-on-godaddy-hosting</guid>
		<description><![CDATA[Ran a few more tests and have some conclusive results… This time we’re going to see the difference between my original database (that had external access enabled) and migration to a new database (that has external access disabled). 
Experiment conditions – A random URL fetched every 5 minutes from a pool of 27 URLs. Only [...]]]></description>
			<content:encoded><![CDATA[<p>Ran a few more tests and have some conclusive results… This time we’re going to see the difference between my original database (that had external access enabled) and migration to a new database (that has external access disabled). </p>
<p>Experiment conditions – A random URL fetched every 5 minutes from a pool of 27 URLs. Only the HTML is fetched, no images or other files. Web hosting using godaddy unlimited linux plan. Database with direct external access enabled. WP-Super-Cache enabled in half cache mode. </p>
<p><a href="http://www.smbaker.com/wordpress/wp-content/uploads/2010/02/histoorighalfcacherand1.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="histo-orig-halfcache-rand-1" border="0" alt="histo-orig-halfcache-rand-1" src="http://www.smbaker.com/wordpress/wp-content/uploads/2010/02/histoorighalfcacherand1_thumb.jpg" width="644" height="346" /></a> </p>
<p>The numbers were chosen particularly to cause a lot of cache misses (27 pages with a 5 minute interval is greater than the cache expiration time). Approximately 32% of the page retrievals resulted in cache hits resulting in less than 1 second retrieval time. A total of 71% of the retrievals occurred in 2 seconds or less, and 85% in 3 seconds or less. Those are the retrievals that I’d consider acceptable. However, 7% of the requests took greater than 10 seconds. That’s getting into the range where people will think a site is down or unresponsive. 4% of them took 20 seconds or more. Two of the requests actually failed due to database timeout. </p>
<p>One of the options when I created this database was whether or not to enable external direct database access. I originally chose this option so that I could do easy database backups via mysql to my linux boxes at home. According to the godaddy website, databases with external access are hosted on a different server than those without. For this reason, I decided to re-import the wordpress site into a database without external direct access and see if there was a difference in performance.</p>
<p>Experimental conditions – same as above, but database with external direct access disabled.</p>
<p><a href="http://www.smbaker.com/wordpress/wp-content/uploads/2010/02/histohalfcacherand1.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="histo-halfcache-rand-1" border="0" alt="histo-halfcache-rand-1" src="http://www.smbaker.com/wordpress/wp-content/uploads/2010/02/histohalfcacherand1_thumb.jpg" width="644" height="346" /></a> </p>
<p>This time 97% of the requests were 2 seconds or less, and 100% were 3 seconds or less. There were no page retrievals over 3 seconds. There were no timeouts. </p>
<p>This is good news as these are finally numbers that I’m confident will lead to a successful website using wordpress. I’m not sure whether the issue was that the databases that allow external direct access are slower than those that do not, or simply that I’ve been lucky enough that I migrated to a database server that receives less load than the others. Pinging the two servers (the original one that allowed external access and the new one that does not) reveals that they are as expected two different IP addresses, and likely two different servers. </p>
<p>I’ll keep monitoring the site with a long-term benchmark to see whether the new performance continues to be acceptable. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.smbaker.com/more-wordpress-benchmarks-on-godaddy-hosting/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Godaddy database / wordpress performance</title>
		<link>http://www.smbaker.com/godaddy-database-wordpress-performance</link>
		<comments>http://www.smbaker.com/godaddy-database-wordpress-performance#comments</comments>
		<pubDate>Fri, 29 Jan 2010 21:59:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[web publishing]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.smbaker.com/wordpress/?p=43</guid>
		<description><![CDATA[This site is in part a great big experiment to see if I want to a) change all of my hosting over to godaddy and b) use wordpress as a publishing platform. My initial impressions were good as wordpress seems like a usable platform. I was able to port many of the pages from my [...]]]></description>
			<content:encoded><![CDATA[<p>This site is in part a great big experiment to see if I want to a) change all of my hosting over to godaddy and b) use wordpress as a publishing platform. My initial impressions were good as wordpress seems like a usable platform. I was able to port many of the pages from my old site over to here.</p>
<blockquote><p>Updated &#8212; I did, for the most part, resolve this issue to my satisfaction by changing some database parameters and adding a cache mod to Wordpress. Full details, with updated benchmarks using the new configuration can be found on this page: <a href="http://www.smbaker.com/more-wordpress-benchmarks-on-godaddy-hosting">http://www.smbaker.com/more-wordpress-benchmarks-on-godaddy-hosting</a></p></blockquote>
<p>However, no sooner did I get to doing some serious site work and I experienced a &lt;gasp!&gt; timeout from the website. I haven&#8217;t had a timeout on one of my websites that I can remember in years. So I decided to go to the root page of the wordpress blog and hit the refresh button. Sure enough, there was a bunch of variability in the page generation time.</p>
<p>Being a network guy, I constructed some simple benchmarks and set them to work for about a two hour period while I was off to lunch. Let&#8217;s cut to the chase, the first histogram is below.</p>
<p><a href="http://www.smbaker.com/wordpress/wp-content/uploads/2010/01/histo-nocache-point1.bmp"></a></p>
<p><a href="http://www.smbaker.com/wordpress/wp-content/uploads/2010/01/histo-nocache-point1.gif"><img class="alignnone size-full wp-image-125" title="histo-nocache-point1" src="http://www.smbaker.com/wordpress/wp-content/uploads/2010/01/histo-nocache-point1.gif" alt="" width="591" height="316" /></a></p>
<p>So what we have a bove is a histogram that shows page retrieval time on the x-axis and number of pages on the y axis. I repeatedly fetched the wordpres homepage (<a href="http://www.smbaker.com/wordpress/">http://www.smbaker.com/wordpress/</a>) of this website every 15 seconds and ran this test for about two hours.</p>
<p>Experimental conditions &#8211; the website is a simple wordpress CMS configuration, about a dozen pages online at the time of the benchmark. The WP-Super-Cache/WP-Cache addons are not enabled. The website is receiving no other traffic than what is being generated by the benchmark. The test was run from 11:00am to 1:00pm pacific time. Web package is the godaddy &#8216;unlimited plan&#8217;.</p>
<p>The first thing we notice is that 72% of the pages were served in 0.6 seconds or less. 84% of the pages were served in 1 second or less. Unfortunately, that&#8217;s where the good news ends. 8% of the pages took over 2.5 seconds or more to fetch. IMO, once we start getting to more than a couple seconds that&#8217;s where websites start looking sluggish. So, 8% of the people who visit this very simple wordpress site will experience a sluggish site. Let&#8217;s look into the outlying data a bit closer.</p>
<p>4% of the pages took more than 5 seconds. Of that, 2% of the pages actually took more than 10 seconds. 10 seconds???? A couple of page retrievals took in excess of 20 seconds. This is the year 2010, not the year 1995.</p>
<p>The first thing to do is to factor out non-server related factors. Things like my PC here at home, my ISP, the network connections between my ISP and godaddy, routers, dropped packets, etc. All of the stuff that makes the Internet unpredictable. I was thinking of this ahead of time and I ran a benchmark fetching a static non-wordpress page at the same time as the above benchmark. The &#8220;static&#8221; page has no PHP. It doesn&#8217;t use any database access. Here&#8217;s a histogram of its&#8217; behavior:</p>
<p><a href="http://www.smbaker.com/wordpress/wp-content/uploads/2010/01/histo-static-point1.bmp"></a></p>
<p><a href="http://www.smbaker.com/wordpress/wp-content/uploads/2010/01/histo-static-point1.gif"><img class="alignnone size-full wp-image-126" title="histo-static-point1" src="http://www.smbaker.com/wordpress/wp-content/uploads/2010/01/histo-static-point1.gif" alt="" width="591" height="316" /></a></p>
<p>Here we can see that on a non-dynamic/non-database page, all of the accesses occur in 0.2 seconds or less. That&#8217;s enough to convince me that the issue isn&#8217;t my ISP, my home computer, or any router in the pipe.</p>
<p>As further anecdotal evidence while trying to update this blog post, I experienced three incidents of timeouts and &#8220;page unavailable&#8221; errors when trying to commit changes to this draft. I&#8217;ve also experienced six more incidents of extremely long load times (greater than 20 seconds) while trying to open simple wordpress interface pages (the edit page, the categories page, etc). I suspect that the database performance is even worse at storing information than retrieving it.</p>
<blockquote><p>Updated &#8212; Read the follow-up entry: <a href="http://www.smbaker.com/more-wordpress-benchmarks-on-godaddy-hosting">http://www.smbaker.com/more-wordpress-benchmarks-on-godaddy-hosting</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.smbaker.com/godaddy-database-wordpress-performance/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

