<?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>The eflow blog &#187; replication</title>
	<atom:link href="http://blog.eflow.org/archives/tag/replication/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.eflow.org</link>
	<description>Insert some amazingly witty tagline here</description>
	<lastBuildDate>Fri, 09 Dec 2011 18:59:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>OpenMRS Replication for Dummies</title>
		<link>http://blog.eflow.org/archives/30</link>
		<comments>http://blog.eflow.org/archives/30#comments</comments>
		<pubDate>Tue, 15 Apr 2008 22:56:52 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[openmrs]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqlconf2008]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://eflow.org/blog/archives/30</guid>
		<description><![CDATA[Patrick Galbraith presented gave an interesting presention titled &#8220;Replication for Dummies&#8221; at the MySQL Conference today. Previously, I had the notion that replicating servers and creating a master/slave MySQL setup was difficult. However, Patrick had a master/slave, then dual master, then dual master with a slave attached running in under 20 mins. He stepped through [...]]]></description>
			<content:encoded><![CDATA[<p>Patrick Galbraith presented gave an interesting presention titled <a href="http://en.oreilly.com/mysql2008/public/schedule/detail/1099">&#8220;Replication for Dummies&#8221;</a> at the <a href="http://www.mysqlconf.com">MySQL Conference</a> today. Previously, I had the notion that replicating servers and creating a master/slave MySQL setup was difficult.  However, Patrick had a master/slave, then dual master, then dual master with a slave attached running in under 20 mins.  He stepped through the my.cnf properties required for both the master server and the slave server &#8212; less than 10 for each!</p>
<p>The gist of how replication works is this:</p>
<ol>
<li>The master server writes all insert/update statements to a log file while applying them to itself.</li>
<li>The slave server knows about this log file and simply applies each insert/update to itself.</li>
<li>The slave server keeps track of where in the binlog file it last read from, so if the slave goes offline, it can start again from its exact position to get up-to-date.</li>
</ol>
<p>It doesn&#8217;t seem like Patrick has his notes on the <a href="http://forge.mysql.com/wiki/MySQL_Conference_and_Expo_2008">MySQLConf2008 wiki</a> yet, but <a href="http://mckowsay.blogspot.com/">Brian</a> found a nice easy <a href="http://howtoforge.com/mysql_database_replication">replication howto</a> we can follow instead.  I look forward to setting this up for AMPATH and pointing all of our data managers&#8217; read requests to the slave database instead of wasting cycles on the main master database.  (that is royal &#8220;I&#8221; and will actually be either Brian or Simiyu <img src='http://blog.eflow.org/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> )</p>
 <img src="http://blog.eflow.org/wp-content/plugins/feed-statistics.php?view=1&post_id=30" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.eflow.org/archives/30/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

