<?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>Alyn Family &#187; mysql</title>
	<atom:link href="http://alynfamily.com/wordpress/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://alynfamily.com/wordpress</link>
	<description>From us to you!</description>
	<lastBuildDate>Sun, 11 Jul 2010 16:23:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>It&#8217;s called LAMP Stack for a Reason</title>
		<link>http://alynfamily.com/wordpress/2008/02/13/its-called-lamp-stack-for-a-reason/</link>
		<comments>http://alynfamily.com/wordpress/2008/02/13/its-called-lamp-stack-for-a-reason/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 20:35:42 +0000</pubDate>
		<dc:creator>egg</dc:creator>
				<category><![CDATA[AF-Design]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://alynfamily.com/wordpress/2008/02/13/its-called-lamp-stack-for-a-reason/</guid>
		<description><![CDATA[FAMP != LAMP, Use Linux! <a href="http://alynfamily.com/wordpress/2008/02/13/its-called-lamp-stack-for-a-reason/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src='http://alynfamily.com/wordpress/wp-content/uploads/2008/02/linux-penguin-big.thumbnail.jpg' alt='Linux Penguin' style="float:left; padding-right:5px; padding-bottom:5px;" />
<p><a href="http://en.wikipedia.org/wiki/LAMP_(software_bundle)">LAMP</a>, for those who don&#8217;t know, is a software architecture commonly deployed for high availability web applications. It&#8217;s entirely open source (meaning free to use) and is very inexpensive to get started with (some hosting plans offer LAMP for as little as $2-3/mo). I&#8217;ve worked with a number of websites running on LAMP and find as a developer I think very little about what&#8217;s going on under the hood. Recently I had a horrible experience (fortunately one that was reversible) deploying a site onto FreeBSD &#8212; afterall, there&#8217;s a reason this is called LAMP and not FAMP. <span id="more-732"></span> Before I get into details and start an OS war, I&#8217;d like to declare that I find there are different tasks that are best suited for different environments. It&#8217;s not about selecting the tools that I use most of the time, it&#8217;s about using the tool that works best in a given task. I also understand that sometimes, those tools are not available and your forced to make due with what you have. While screwdrivers don&#8217;t generally make good hammers, if it&#8217;s all you have to hang a picture on the wall, it can get the job done&#8230; but I digress.</p>
<p>Recently I was working on an infrastructure move. It involved a few servers which distributed the LAMP stack into a typical database application server model, segmenting rolls out over equipment. Nothing super complex, but sufficiently large and dealing with a large enough volume that the move was done in stages to minimize downtime. Working with our very talented team of System administrators we planned out the entire move and experienced only 1 minute of downtime. The gotcha wasn&#8217;t code based, but OS based. The only difference between our two infrastructures was our OS layer (the &#8216;L&#8217; in LAMP), we had opted for FreeBSD for a number of valid reasons (which are beyond the scope of this rant.)</p>
<p>We began by replicating the database using standard MySQL replication from our production master into the new infrastructure, this went without much difficulty and the system was able to handle the query load nicely. The database replicated and was very quick. We moved our codebase over and made necessary configuration changes to work within the new hardware environment (mostly path &#038; security changes). After we did this, we were able to successfully test and use the application in the new environment &#8211; all seemed well. Queries performed faster than they had in our old setup &#8211; long and short we were pleased. We flipped the switch and basked in the glory that is a smooth transition. The site worked wonderfully, load was well within reason and we had solid performance from the application.</p>
<p>Two or three hours after the transition (as our load started to increase with traffic) we began experiencing issues with the latency of pages going up and up and up. Working with our ISP we were able to locate the problem. Threading in FreeBSD != threading in Linux. After two more hours working on the equipment, we decided to implement our rollback plan and revert to our old equipment (which was standing by for just such an occasion.) We were able to reapply the data changes to the old equipment and revert just about everything back in just a few minutes and bring the site back online. Unfortunately we learned the hard way, you shouldn&#8217;t use (at least as of right now) current stable releases of MySQL and FreeBSD together. While there are a number of hacks to make this work &#8211; we decided that we wouldn&#8217;t be the guinnea pig who proved these solutions in a production environment. While I have nothing against FreeBSD as an OS, this threading difference was a make or break for us. In summary, if your using FreeBSD and MySQL, and you are expecting (or at least hoping) to become a high volume site, you&#8217;ve been warned if things stop working. It&#8217;s called LAMP for a reason, move to <a href="http://www.centos.org/">CentOS</a>, <a href="http://www.redhat.com">RedHat</a> or another Linux distribution for your database hardware &#8211; it will save you many headaches.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Falynfamily.com%2Fwordpress%2F2008%2F02%2F13%2Fits-called-lamp-stack-for-a-reason%2F';
  addthis_title  = 'It%26%238217%3Bs+called+LAMP+Stack+for+a+Reason';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://alynfamily.com/wordpress/2008/02/13/its-called-lamp-stack-for-a-reason/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SimpleDB &#8211; Outsourced Database Software</title>
		<link>http://alynfamily.com/wordpress/2007/12/14/simpledb-outsourced-database-software/</link>
		<comments>http://alynfamily.com/wordpress/2007/12/14/simpledb-outsourced-database-software/#comments</comments>
		<pubDate>Sat, 15 Dec 2007 04:00:24 +0000</pubDate>
		<dc:creator>egg</dc:creator>
				<category><![CDATA[AF-Design]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://alynfamily.com/wordpress/2007/12/14/simpledb-outsourced-database-software/</guid>
		<description><![CDATA[TechCrunch broke this to me this evening. I am very excited about a pay per drink service for relational databases. Amazon has released a product called SimpleDB and it&#8217;s going to shake the small to mid-level web hosting realm to &#8230; <a href="http://alynfamily.com/wordpress/2007/12/14/simpledb-outsourced-database-software/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src='http://alynfamily.com/wordpress/wp-content/uploads/2007/12/100014192753_v46777512_.thumbnail.gif' alt='Amazon Web Services' /> <a href="http://www.techcrunch.com/2007/12/14/amazon-takes-on-oracle-and-ibm-with-simple-db-beta">TechCrunch</a> broke this to me this evening. I am very excited about a pay per drink service for relational databases. Amazon has released a product called <a href="http://www.amazon.com/gp/browse.html?node=342335011">SimpleDB</a> and it&#8217;s going to shake the small to mid-level web hosting realm to it&#8217;s roots. During my time at <a href="http://www.nwf.org">NWF</a>, we were payed a huge licensing cost for Microsoft <a href="http://www.microsoft.com/sql/default.mspx">SQL Server</a> and now in my freelance world, I&#8217;m constantly at odds with keeping <a href="http://www.mysql.com">MySQL</a> running efficiently and learning the nuances of query tuning. The reason this is earth shattering is because you can &#8220;fire your DBA&#8221;, because that&#8217;s just not true, you&#8217;ll still require someone who understands data modeling, database normalization and all of that stuff and how to make sense of it as it comes back out of your <a href="http://en.wikipedia.org/wiki/Relational_database_management_system">RDBMS</a>. However, this does remove a huge barrier to entry for small companies in capital expenses. Now for just a few dollars per month a company can create a database, put it online, populate it and run a business off of that data without worrying about scaleability. Considering Amazon now lets you virtualize your entire IT infrastructure utilizing <a href="http://www.amazon.com/S3-AWS-home-page-Money/b/ref=sc_fe_l_2?ie=UTF8&#038;node=16427261&#038;no=3435361&#038;me=A36L942TSJ2AJA">storage</a> and <a href="http://www.amazon.com/gp/browse.html?node=201590011">compute</a> clouds, small businesses &#8212; with the assistance of a good consultant &#8212; can literally grow infrastructure on demand. I for one am looking forward to seeing how performance actually plays out on this and how the $0.14 per machine hour gets billed. The Compute Cloud charges per instance hour, so even an idle machine costs about $75/month. If it follows a similar billing model, it&#8217;s $100/month, which doesn&#8217;t help cottage industries but is still viable for startups and other small businesses who are already running dedicated server equipment.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Falynfamily.com%2Fwordpress%2F2007%2F12%2F14%2Fsimpledb-outsourced-database-software%2F';
  addthis_title  = 'SimpleDB+%26%238211%3B+Outsourced+Database+Software';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://alynfamily.com/wordpress/2007/12/14/simpledb-outsourced-database-software/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
