<?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>Todd Huss &#187; FreeBSD</title>
	<atom:link href="http://gabrito.com/post/category/technical/freebsd/feed" rel="self" type="application/rss+xml" />
	<link>http://gabrito.com</link>
	<description>Anecdotes on Technology Leadership, Ruby, Java, Scala, Cloud Computing, Open-Source, SEO, and Design</description>
	<lastBuildDate>Thu, 08 Dec 2011 00:21:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Production MySQL performance tuning</title>
		<link>http://gabrito.com/post/mysql-performance-tuning</link>
		<comments>http://gabrito.com/post/mysql-performance-tuning#comments</comments>
		<pubDate>Fri, 16 Jan 2009 04:22:00 +0000</pubDate>
		<dc:creator>Todd Huss</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Systems Administration]]></category>

		<guid isPermaLink="false">http://gabrito.com/?p=235</guid>
		<description><![CDATA[For the past 9 years I&#8217;ve been working almost exclusively with MySQL (with a little PostgreSQL thrown in) and while I don&#8217;t do nearly as much DBA work these days, I still find myself troubleshooting a query or tuning my.cnf. &#8230; <a href="http://gabrito.com/post/mysql-performance-tuning">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mysql.com"><img src="http://gabrito.com/wp-content/uploads/2009/01/mysql.gif" alt="mysql" title="mysql" width="114" height="68" class="alignleft size-full wp-image-236" /></a> For the past 9 years I&#8217;ve been working almost exclusively with MySQL (with a little PostgreSQL thrown in) and while I don&#8217;t do nearly as much DBA work these days, I still find myself troubleshooting a query or tuning my.cnf. While in general I find MySQL to be a lot more straightforward to work with, it&#8217;s still equally important to tune it for your applications needs.</p>
<p>To that end one of the tools I want to give a shout out to is the <a href="http://www.day32.com/MySQL/">MySQL Performance Tuning Primer Script</a>. You <a href="http://www.day32.com/MySQL/tuning-primer.sh">download and run it</a> against a production system <span id="more-235"></span>(that has preferably been running under normal load for a day or two so that it&#8217;s gathered stats). It&#8217;s a read-only script so you don&#8217;t need to worry about it changing anything but it makes some great recommendations about which tuning parameters may need adjustment. Here&#8217;s a snippet from from a production server:</p>
<p><strong>KEY BUFFER</strong><br />
Current MyISAM index space = 173 M<br />
Current key_buffer_size = 1 G<br />
Key cache miss rate is 1 : 1003<br />
Key buffer fill ratio = 7.00 %<span style="color:red"><br />
Your key_buffer_size seems to be too high.<br />
Perhaps you can use these resources elsewhere</span><br />
&#8230;<br />
&#8230;<br />
&#8230;</p>
<p>It&#8217;s no replacement for a DBA but if you want to get a somewhat sane my.cnf going for your particular application it&#8217;s a great place to start!</p>
]]></content:encoded>
			<wfw:commentRss>http://gabrito.com/post/mysql-performance-tuning/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comparing Amazon EC2 with VPS and dedicated hosting</title>
		<link>http://gabrito.com/post/comparing-amazon-ec2-with-vps-and-dedicated-hosting</link>
		<comments>http://gabrito.com/post/comparing-amazon-ec2-with-vps-and-dedicated-hosting#comments</comments>
		<pubDate>Fri, 01 Dec 2006 05:01:21 +0000</pubDate>
		<dc:creator>Todd Huss</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Systems Administration]]></category>

		<guid isPermaLink="false">http://gabrito.com/post/comparing-amazon-ec2-with-vps-and-dedicated-hosting</guid>
		<description><![CDATA[I&#8217;ve been reading all the great things about Amazon EC2 (or Elastic Compute Cloud) and lots of pricing comparisons with VPS and dedicated hosting. I finally got an EC2 account and tinkered a bit and there&#8217;s a big difference between &#8230; <a href="http://gabrito.com/post/comparing-amazon-ec2-with-vps-and-dedicated-hosting">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been reading all the great things about <a href="http://www.amazon.com/gp/browse.html?node=201590011">Amazon EC2 (or Elastic Compute Cloud)</a> and lots of pricing comparisons with <a href="http://www.vpslink.com/vps-hosting/">VPS</a> and <a href="http://www.dreamhost.com/r.cgi?241603/hosting-dedicated.html">dedicated hosting</a>. I finally got an EC2 account and tinkered a bit and there&#8217;s a big difference between EC2 and Virtual Private Server or Dedicated hosting that most of the preliminary write-ups I&#8217;ve seen completely overlook.<br />
<span id="more-163"></span><br />
- With a VPS or Dedicated server you can shutdown, reboot, crash, or have an outage and your data stays on disk.<br />
- With an Amazon EC2 account when you shutdown, reboot, crash, or have an outage any new data that was not in the server image that you originally uploaded is gone!</p>
<p><!--adsense--></p>
<p>This makes it totally inadequate for running a production database server. On the forums people have argued for using replication or clustering solutions while others have advocated streaming redo logs to Amazon&#8217;s S3 service. However, let&#8217;s look at the disaster recovery scenario if all your virtual machines go down (and don&#8217;t think it can&#8217;t happen, racks overload their circuits, generators fail during a power outages, AC&#8217;s can&#8217;t keep up during heat-waves, etc&#8230;):</p>
<p>- With a VPS or dedicated server you startup your servers, do a data integrity check, and you&#8217;re up and running again!<br />
- With EC2 you restart the database server image, then restore the full database backup from the previous night (which you&#8217;ve been backing up to S3), then you rerun all of the redo logs (which you&#8217;ve also been backing up to S3).</p>
<p>The latter scenario isn&#8217;t that bad with a small database but for with a large database it could add hours to your recovery time. I imagine Amazon will eventually add permanent storage to EC2 and if/when that happens you&#8217;d be able to compare Amazon EC2 to a VPS but right now it&#8217;s comparing apples and oranges!</p>
]]></content:encoded>
			<wfw:commentRss>http://gabrito.com/post/comparing-amazon-ec2-with-vps-and-dedicated-hosting/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Trafeoffs of aggressive filesystem partitioning</title>
		<link>http://gabrito.com/post/trafeoffs-of-aggressive-filesystem-partitioning</link>
		<comments>http://gabrito.com/post/trafeoffs-of-aggressive-filesystem-partitioning#comments</comments>
		<pubDate>Thu, 24 Aug 2006 00:27:44 +0000</pubDate>
		<dc:creator>Todd Huss</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systems Administration]]></category>

		<guid isPermaLink="false">http://gabrito.com/post/trafeoffs-of-aggressive-filesystem-partitioning</guid>
		<description><![CDATA[Most systems administrators will tell you it&#8217;s important to partition your install into anywhere from 4-7 discrete patitions (or slices if you&#8217;re in the BSD camp). While I think it&#8217;s good advice in certain cases, the headaches of mis-guessing disk &#8230; <a href="http://gabrito.com/post/trafeoffs-of-aggressive-filesystem-partitioning">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Most systems administrators will tell you it&#8217;s important to partition your install into anywhere from 4-7 discrete patitions (or slices if you&#8217;re in the BSD camp). While I think it&#8217;s good advice in certain cases, the headaches of mis-guessing disk space requirements have bitten me so many times that I&#8217;ve grown jaded and only create a new partition for a filesystem if there&#8217;s a really good reason such as:<br />
<span id="more-152"></span><br />
1. Performance<br />
2. Preventing an application, user, or logging subsystem from filling up the whole disk<br />
3. To keep the operating system and data separate (which eases upgrades, restores, etc&#8230;)<br />
4. If I have multiple disks or RAID arrays and can&#8217;t or don&#8217;t want to use an LVM</p>
<p><!--adsense--></p>
<p>In my personal experience partitioning a disk into root, boot, var, home, usr/local, tmp, var/mysql, etc&#8230; is generally overkill and has caused me far more headaches than it has prevented problems. Eventually you end up having one filesystem with gigabytes free that you really need for another filesystem which leads you to do a dump-repartition-restore. And that&#8217;s always a hassle if the machine is in use by real users during business hours so you end up having to work a night or weekend.</p>
<p>So, while I still like to have 4 partitions on heavy duty production servers (root, var, app-or-user-data, swap), I no longer bother with desktop, development, or light use production servers. I prefer the ultra simple 2 partition scheme of root and swap and since I started doing that 3 years ago I&#8217;ve had to do far fewer dump-repartition-restores.</p>
]]></content:encoded>
			<wfw:commentRss>http://gabrito.com/post/trafeoffs-of-aggressive-filesystem-partitioning/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

