<?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: Faster MySQL failover with SELECT mirroring</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/02/01/fast-mysql-master-master-failover-with-select-mirroring/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/02/01/fast-mysql-master-master-failover-with-select-mirroring/</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: Tino Didriksen</title>
		<link>http://www.mysqlperformanceblog.com/2009/02/01/fast-mysql-master-master-failover-with-select-mirroring/comment-page-1/#comment-466872</link>
		<dc:creator>Tino Didriksen</dc:creator>
		<pubDate>Sat, 07 Feb 2009 00:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=584#comment-466872</guid>
		<description>@pat, there is a 4th way which also minimizes downtime: use rsync -avz.

Steps:
1) Use rsync -avz to copy the data folder to the new slave. This should take a long time and it will likely complain files change during read, which is fine.
2) Repeat step 1. This should take considerably less time; basically only transfers the data that has changed during the initial copy.
3) Shut down master mysqld and repeat step 1 again.
4) Start master and slave mysqld.

On small dbs step 2 can be skipped since very little is expected to have changed during initial copy, but on larger dbs it is beneficial to do two live synchronizations.</description>
		<content:encoded><![CDATA[<p>@pat, there is a 4th way which also minimizes downtime: use rsync -avz.</p>
<p>Steps:<br />
1) Use rsync -avz to copy the data folder to the new slave. This should take a long time and it will likely complain files change during read, which is fine.<br />
2) Repeat step 1. This should take considerably less time; basically only transfers the data that has changed during the initial copy.<br />
3) Shut down master mysqld and repeat step 1 again.<br />
4) Start master and slave mysqld.</p>
<p>On small dbs step 2 can be skipped since very little is expected to have changed during initial copy, but on larger dbs it is beneficial to do two live synchronizations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: http://scale-out-blog.blogspot.com/</title>
		<link>http://www.mysqlperformanceblog.com/2009/02/01/fast-mysql-master-master-failover-with-select-mirroring/comment-page-1/#comment-462950</link>
		<dc:creator>http://scale-out-blog.blogspot.com/</dc:creator>
		<pubDate>Tue, 03 Feb 2009 18:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=584#comment-462950</guid>
		<description>Hi Baron, 

This is an excellent article and real food for thought.  Your workload simulation idea using a sniffer looks very tractable for a couple of reasons.  First, the basic problem with read/write splitting is making an up-front decision when it&#039;s safe to dispatch synchronously to a slave.  Here we don&#039;t care about the result of the query or even very greatly when it actually runs.  Second, it seems it would not be necessary to run all queries or even a lot of them:  a representative distribution should be sufficient to load popular pages into cache. 

If we could get a subset of sniffed packets delivered as consistent tcp/ip sessions I think we could adapt our Myosotis proxy to perform this kind of cache heating operation.  It could be a simple add-on that has little or no impact on underlying HA mechanisms (i.e., does not make them more complex). 

Cheers, Robert

p.s, thanks for the link</description>
		<content:encoded><![CDATA[<p>Hi Baron, </p>
<p>This is an excellent article and real food for thought.  Your workload simulation idea using a sniffer looks very tractable for a couple of reasons.  First, the basic problem with read/write splitting is making an up-front decision when it&#8217;s safe to dispatch synchronously to a slave.  Here we don&#8217;t care about the result of the query or even very greatly when it actually runs.  Second, it seems it would not be necessary to run all queries or even a lot of them:  a representative distribution should be sufficient to load popular pages into cache. </p>
<p>If we could get a subset of sniffed packets delivered as consistent tcp/ip sessions I think we could adapt our Myosotis proxy to perform this kind of cache heating operation.  It could be a simple add-on that has little or no impact on underlying HA mechanisms (i.e., does not make them more complex). </p>
<p>Cheers, Robert</p>
<p>p.s, thanks for the link</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2009/02/01/fast-mysql-master-master-failover-with-select-mirroring/comment-page-1/#comment-462165</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Mon, 02 Feb 2009 22:52:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=584#comment-462165</guid>
		<description>Ron, I&#039;m not sure what you mean.</description>
		<content:encoded><![CDATA[<p>Ron, I&#8217;m not sure what you mean.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron</title>
		<link>http://www.mysqlperformanceblog.com/2009/02/01/fast-mysql-master-master-failover-with-select-mirroring/comment-page-1/#comment-461408</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Sun, 01 Feb 2009 23:10:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=584#comment-461408</guid>
		<description>Doesn&#039;t flushing the buffer pool fix the problem for passive standby&#039;s?</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t flushing the buffer pool fix the problem for passive standby&#8217;s?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: http://orensol.com/</title>
		<link>http://www.mysqlperformanceblog.com/2009/02/01/fast-mysql-master-master-failover-with-select-mirroring/comment-page-1/#comment-461340</link>
		<dc:creator>http://orensol.com/</dc:creator>
		<pubDate>Sun, 01 Feb 2009 19:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=584#comment-461340</guid>
		<description>Sebastian,

You should check out &lt;a href=&quot;http://code.google.com/p/mysql-master-master/&quot; rel=&quot;nofollow&quot;&gt;MMM&lt;/a&gt;.

A very reliable daemon for running a highly available master-master cluster.

Oren</description>
		<content:encoded><![CDATA[<p>Sebastian,</p>
<p>You should check out <a href="http://code.google.com/p/mysql-master-master/" rel="nofollow">MMM</a>.</p>
<p>A very reliable daemon for running a highly available master-master cluster.</p>
<p>Oren</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pat</title>
		<link>http://www.mysqlperformanceblog.com/2009/02/01/fast-mysql-master-master-failover-with-select-mirroring/comment-page-1/#comment-461322</link>
		<dc:creator>pat</dc:creator>
		<pubDate>Sun, 01 Feb 2009 18:22:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=584#comment-461322</guid>
		<description>Sebastian,

I know of only three ways to get a consistent backup of myisam suitable for a replication seed. Maybe one of the guys here has a fourth (in which case I&#039;d be curious myself), but here&#039;s the three I know of:

1) Stop the database server, copy the data directory (this is an outage)
2) use mysqldump with the lock all tables option (this is an outage)
3) if you&#039;re using LVM, FLUSH TABLES WITH READLOCK ... snap ... RELEASE LOCK (this is a very brief outage)

If you&#039;re using innodb, you can just do a dump with --single-transaction in the flags and all should be well.

We run a site with a large number of myisam tables that we&#039;re seriously considering moving to innodb; myisam has a lot of issues around the whole concept of 100% availability.</description>
		<content:encoded><![CDATA[<p>Sebastian,</p>
<p>I know of only three ways to get a consistent backup of myisam suitable for a replication seed. Maybe one of the guys here has a fourth (in which case I&#8217;d be curious myself), but here&#8217;s the three I know of:</p>
<p>1) Stop the database server, copy the data directory (this is an outage)<br />
2) use mysqldump with the lock all tables option (this is an outage)<br />
3) if you&#8217;re using LVM, FLUSH TABLES WITH READLOCK &#8230; snap &#8230; RELEASE LOCK (this is a very brief outage)</p>
<p>If you&#8217;re using innodb, you can just do a dump with &#8211;single-transaction in the flags and all should be well.</p>
<p>We run a site with a large number of myisam tables that we&#8217;re seriously considering moving to innodb; myisam has a lot of issues around the whole concept of 100% availability.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://www.mysqlperformanceblog.com/2009/02/01/fast-mysql-master-master-failover-with-select-mirroring/comment-page-1/#comment-461319</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Sun, 01 Feb 2009 18:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=584#comment-461319</guid>
		<description>Do you actually recommend m-m replication?
I tried it when it was &quot;fresh&quot; and a lot more hackish a few year back:
it never performed reliable. Most important for me were my scripts to get it back up fast...
Is it safe to use it these days under heavy load with MyISAM-tables?

thanks ;-)</description>
		<content:encoded><![CDATA[<p>Do you actually recommend m-m replication?<br />
I tried it when it was &#8220;fresh&#8221; and a lot more hackish a few year back:<br />
it never performed reliable. Most important for me were my scripts to get it back up fast&#8230;<br />
Is it safe to use it these days under heavy load with MyISAM-tables?</p>
<p>thanks <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2009/02/01/fast-mysql-master-master-failover-with-select-mirroring/comment-page-1/#comment-461272</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Sun, 01 Feb 2009 16:25:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=584#comment-461272</guid>
		<description>You can read about it in our book High Performance MySQL Second Edition (soon to be translated to Russian, btw!).  Honestly I think it&#039;s the best source of practical, sound advice.  There is a lot of bad information on the Internet.

However, I don&#039;t see any connection between m-m replication and nested sets, so maybe you have several things you need to think about.  It sounds like a complex topic.</description>
		<content:encoded><![CDATA[<p>You can read about it in our book High Performance MySQL Second Edition (soon to be translated to Russian, btw!).  Honestly I think it&#8217;s the best source of practical, sound advice.  There is a lot of bad information on the Internet.</p>
<p>However, I don&#8217;t see any connection between m-m replication and nested sets, so maybe you have several things you need to think about.  It sounds like a complex topic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Сергей Белов</title>
		<link>http://www.mysqlperformanceblog.com/2009/02/01/fast-mysql-master-master-failover-with-select-mirroring/comment-page-1/#comment-461245</link>
		<dc:creator>Сергей Белов</dc:creator>
		<pubDate>Sun, 01 Feb 2009 15:22:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=584#comment-461245</guid>
		<description>Baron. where to read about master-master MySQL replication in details?
We ran into problems with master-master replication in case of nested sets storage of hierarchical data.</description>
		<content:encoded><![CDATA[<p>Baron. where to read about master-master MySQL replication in details?<br />
We ran into problems with master-master replication in case of nested sets storage of hierarchical data.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
