<?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/"
		>
<channel>
	<title>Comments on: Getting use of Slave in MySQL Replication</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:23:57 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/comment-page-1/#comment-138409</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 22 Jun 2007 19:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/#comment-138409</guid>
		<description>Not yet to be honest. I did not try 5.1 -&gt; 5.0     Generally to be safe you better have Slaves at same or higher revision than the master.</description>
		<content:encoded><![CDATA[<p>Not yet to be honest. I did not try 5.1 -> 5.0     Generally to be safe you better have Slaves at same or higher revision than the master.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jojo</title>
		<link>http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/comment-page-1/#comment-138210</link>
		<dc:creator>Jojo</dc:creator>
		<pubDate>Fri, 22 Jun 2007 04:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/#comment-138210</guid>
		<description>Quick question. Have you tried replicating from 5.1 (master) to 5.0.xx (slave)? I&#039;m planning to do a downgrade of our existing db due to some problems I&#039;m experiencing on 5.1. I&#039;m planning to create a replica first then cutover to the replicas so as to minimize downtime.

Looking forward to your reply. Thanks.</description>
		<content:encoded><![CDATA[<p>Quick question. Have you tried replicating from 5.1 (master) to 5.0.xx (slave)? I&#8217;m planning to do a downgrade of our existing db due to some problems I&#8217;m experiencing on 5.1. I&#8217;m planning to create a replica first then cutover to the replicas so as to minimize downtime.</p>
<p>Looking forward to your reply. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry</title>
		<link>http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/comment-page-1/#comment-135210</link>
		<dc:creator>Dmitry</dc:creator>
		<pubDate>Thu, 14 Jun 2007 15:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/#comment-135210</guid>
		<description>That delay become random and once per 2-3 days, now we researching about.

Thankx.</description>
		<content:encoded><![CDATA[<p>That delay become random and once per 2-3 days, now we researching about.</p>
<p>Thankx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/comment-page-1/#comment-135205</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Thu, 14 Jun 2007 15:00:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/#comment-135205</guid>
		<description>Dmitry,

If replication is that delayed you need to tune it first as semi synchronous replication will cral very slow in such case.</description>
		<content:encoded><![CDATA[<p>Dmitry,</p>
<p>If replication is that delayed you need to tune it first as semi synchronous replication will cral very slow in such case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry</title>
		<link>http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/comment-page-1/#comment-135197</link>
		<dc:creator>Dmitry</dc:creator>
		<pubDate>Thu, 14 Jun 2007 14:39:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/#comment-135197</guid>
		<description>Thanks, Peter. Will test it, cause delays sometimes 5 seconds before in slave appears this row.</description>
		<content:encoded><![CDATA[<p>Thanks, Peter. Will test it, cause delays sometimes 5 seconds before in slave appears this row.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/comment-page-1/#comment-135182</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Thu, 14 Jun 2007 13:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/#comment-135182</guid>
		<description>Dmitry,

Check Google Semi-Synchronous replication patches.</description>
		<content:encoded><![CDATA[<p>Dmitry,</p>
<p>Check Google Semi-Synchronous replication patches.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry</title>
		<link>http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/comment-page-1/#comment-134974</link>
		<dc:creator>Dmitry</dc:creator>
		<pubDate>Wed, 13 Jun 2007 21:22:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/#comment-134974</guid>
		<description>Exists any ways to create synced replication without delays or lags with mysql ?</description>
		<content:encoded><![CDATA[<p>Exists any ways to create synced replication without delays or lags with mysql ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/comment-page-1/#comment-53354</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sat, 17 Feb 2007 08:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/#comment-53354</guid>
		<description>James there are many different circumstances out where.  You may have just one slave in which case it might not overload master too badly.  There are also different cases about reading stale data - in some cases you can use it if you have no choice in others it is absolutely critical data is reasonably recent. 

The thing is even non-critical queries might allow only certain delay - can you really use the slave if it is lagging by a week ? (And I&#039;ve seen even worse cases).   

Designing how slaves are usage you should of course take your normal lag spikes in account - if you have nightly job which does 10min update queries - this will be normal lag time for you which does not cause switching. 

Regarding Alter Table - if it is long, in most cases the good idea is to run it on the slaves separately from the master and exclude it from replication.</description>
		<content:encoded><![CDATA[<p>James there are many different circumstances out where.  You may have just one slave in which case it might not overload master too badly.  There are also different cases about reading stale data &#8211; in some cases you can use it if you have no choice in others it is absolutely critical data is reasonably recent. </p>
<p>The thing is even non-critical queries might allow only certain delay &#8211; can you really use the slave if it is lagging by a week ? (And I&#8217;ve seen even worse cases).   </p>
<p>Designing how slaves are usage you should of course take your normal lag spikes in account &#8211; if you have nightly job which does 10min update queries &#8211; this will be normal lag time for you which does not cause switching. </p>
<p>Regarding Alter Table &#8211; if it is long, in most cases the good idea is to run it on the slaves separately from the master and exclude it from replication.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Day</title>
		<link>http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/comment-page-1/#comment-53229</link>
		<dc:creator>James Day</dc:creator>
		<pubDate>Sat, 17 Feb 2007 05:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/#comment-53229</guid>
		<description>Jakub, going to the master if the slave is lagged is very dangerous. Consider what happens if an ALTER TABLE is replicated: all slaves lag at the same time, the applications then mount an accidental denial of service attack on the master and take the site down. Slow queries or broken queries can also cause this problem. It&#039;s good to track but switching to a different slave or giving up and providing out of date information for non-critical queries (and critical had better be limited!) is also necessary to handle fault cases.</description>
		<content:encoded><![CDATA[<p>Jakub, going to the master if the slave is lagged is very dangerous. Consider what happens if an ALTER TABLE is replicated: all slaves lag at the same time, the applications then mount an accidental denial of service attack on the master and take the site down. Slow queries or broken queries can also cause this problem. It&#8217;s good to track but switching to a different slave or giving up and providing out of date information for non-critical queries (and critical had better be limited!) is also necessary to handle fault cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/comment-page-1/#comment-53007</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Fri, 16 Feb 2007 23:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/02/14/getting-use-of-slave-in-mysql-replication/#comment-53007</guid>
		<description>Then use a timeout on MASTER_POS_WAIT en fetch data from master if a timeout occurs.
Not the best solution, but it ensures slaves are used as much as possible.

This can be very useful if you divide the tables in a database to difference slaves. Using the slave as much as possible greatly increases the chance most data is in cached in memory whereas the same query could be really, really slow on the master because it might not have much of it in cache.</description>
		<content:encoded><![CDATA[<p>Then use a timeout on MASTER_POS_WAIT en fetch data from master if a timeout occurs.<br />
Not the best solution, but it ensures slaves are used as much as possible.</p>
<p>This can be very useful if you divide the tables in a database to difference slaves. Using the slave as much as possible greatly increases the chance most data is in cached in memory whereas the same query could be really, really slow on the master because it might not have much of it in cache.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
