<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Creating an Intermediate Replication Layer</title>
	<atom:link href="http://blog.onefreevoice.com/2008/07/15/creating_intermediate_slaves/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.onefreevoice.com/2008/07/15/creating_intermediate_slaves/</link>
	<description>A Blog About Databases and Stuff</description>
	<lastBuildDate>Sun, 05 Apr 2009 04:01:31 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: How MySQL Sandbox Solves All My Problems &#171; OneFreeVoice</title>
		<link>http://blog.onefreevoice.com/2008/07/15/creating_intermediate_slaves/#comment-479</link>
		<dc:creator>How MySQL Sandbox Solves All My Problems &#171; OneFreeVoice</dc:creator>
		<pubDate>Sun, 05 Apr 2009 04:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.onefreevoice.com/?p=103#comment-479</guid>
		<description>[...] getting complicated? To you have two many slaves running off a single master and need to introduce a new layer. Mysql_sandbox comes with several prepared schemes out of the box, including standard, circular, [...]</description>
		<content:encoded><![CDATA[<p>[...] getting complicated? To you have two many slaves running off a single master and need to introduce a new layer. Mysql_sandbox comes with several prepared schemes out of the box, including standard, circular, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Haase</title>
		<link>http://blog.onefreevoice.com/2008/07/15/creating_intermediate_slaves/#comment-396</link>
		<dc:creator>Gregory Haase</dc:creator>
		<pubDate>Mon, 28 Jul 2008 15:10:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.onefreevoice.com/?p=103#comment-396</guid>
		<description>I made one final edit to this procedure. The &lt;code&gt;START SLAVE UNTIL&lt;/code&gt; directive only causes the slave SQL thread to stop at the given bin-log and position. At this point, the slave IO thread is still running. The original script had a &lt;code&gt;RESET SLAVE&lt;/code&gt; call immediately after &lt;code&gt;MASTER_POS_WAIT&lt;/code&gt;.  This resulted in the error:
&lt;pre lang=&quot;sql&quot;&gt;ERROR 1198 (HY000) at line 6: This operation cannot be performed with a running slave; run STOP SLAVE first&lt;/pre&gt;
Inserting &lt;code&gt;STOP SLAVE&lt;/code&gt; before &lt;code&gt;RESET SLAVE&lt;/code&gt; resolves the issue.</description>
		<content:encoded><![CDATA[<p>I made one final edit to this procedure. The <code>START SLAVE UNTIL</code> directive only causes the slave SQL thread to stop at the given bin-log and position. At this point, the slave IO thread is still running. The original script had a <code>RESET SLAVE</code> call immediately after <code>MASTER_POS_WAIT</code>.  This resulted in the error:</p>
<pre lang="sql">ERROR 1198 (HY000) at line 6: This operation cannot be performed with a running slave; run STOP SLAVE first</pre>
<p>Inserting <code>STOP SLAVE</code> before <code>RESET SLAVE</code> resolves the issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Haase</title>
		<link>http://blog.onefreevoice.com/2008/07/15/creating_intermediate_slaves/#comment-389</link>
		<dc:creator>Gregory Haase</dc:creator>
		<pubDate>Tue, 15 Jul 2008 19:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.onefreevoice.com/?p=103#comment-389</guid>
		<description>Thank you Mats for catching that one. I&#039;ve edited the original thread to include MASTER_POS_WAIT as you suggested.</description>
		<content:encoded><![CDATA[<p>Thank you Mats for catching that one. I&#8217;ve edited the original thread to include MASTER_POS_WAIT as you suggested.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mats Kindahl</title>
		<link>http://blog.onefreevoice.com/2008/07/15/creating_intermediate_slaves/#comment-388</link>
		<dc:creator>Mats Kindahl</dc:creator>
		<pubDate>Tue, 15 Jul 2008 19:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.onefreevoice.com/?p=103#comment-388</guid>
		<description>Uhm... as I understand what you are trying to accomplish, there is a problem with following the procedure given. If the instructions are followed by the letter, the intermediate slave will be reset &lt;em&gt;immediately&lt;/em&gt; and not when the slave reaches the until-position given in the &lt;code&gt;START SLAVE UNTIL&lt;/code&gt;. This is because the &lt;code&gt;START SLAVE UNTIL&lt;/code&gt; starts the slave asynchronously, i.e., will return immediately with the slave running. To wait for the slaves to reach the given position before resetting them, it is necessary to add a &lt;code&gt;SELECT MASTER_POS_WAIT(&#039;bin-logs.000025&#039;, 106)&lt;/code&gt; after the &lt;code&gt;START SLAVE UNTIL&lt;/code&gt; but before the &lt;code&gt;RESET MASTER&lt;/code&gt; and the &lt;code&gt;RESET SLAVE&lt;/code&gt; respectively.</description>
		<content:encoded><![CDATA[<p>Uhm&#8230; as I understand what you are trying to accomplish, there is a problem with following the procedure given. If the instructions are followed by the letter, the intermediate slave will be reset <em>immediately</em> and not when the slave reaches the until-position given in the <code>START SLAVE UNTIL</code>. This is because the <code>START SLAVE UNTIL</code> starts the slave asynchronously, i.e., will return immediately with the slave running. To wait for the slaves to reach the given position before resetting them, it is necessary to add a <code>SELECT MASTER_POS_WAIT('bin-logs.000025', 106)</code> after the <code>START SLAVE UNTIL</code> but before the <code>RESET MASTER</code> and the <code>RESET SLAVE</code> respectively.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
