<?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: Storing MySQL Binary logs on NFS Volume</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2010/07/30/storing-mysql-binary-logs-on-nfs-volume/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2010/07/30/storing-mysql-binary-logs-on-nfs-volume/</link>
	<description>Percona&#039;s MySQL &#38; InnoDB performance and scalability blog</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:45:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Peter Zaitsev</title>
		<link>http://www.mysqlperformanceblog.com/2010/07/30/storing-mysql-binary-logs-on-nfs-volume/comment-page-1/#comment-804984</link>
		<dc:creator>Peter Zaitsev</dc:creator>
		<pubDate>Mon, 18 Apr 2011 17:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=3413#comment-804984</guid>
		<description>William,

In this case the point is rather the network roundtrip seems to be needed (at least in Linux client implementation) if file is to be extended.      Your last sentence says it all though. In many cases people think moving to high end NFS will get far better performance than local storage.</description>
		<content:encoded><![CDATA[<p>William,</p>
<p>In this case the point is rather the network roundtrip seems to be needed (at least in Linux client implementation) if file is to be extended.      Your last sentence says it all though. In many cases people think moving to high end NFS will get far better performance than local storage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Jimenez</title>
		<link>http://www.mysqlperformanceblog.com/2010/07/30/storing-mysql-binary-logs-on-nfs-volume/comment-page-1/#comment-804983</link>
		<dc:creator>William Jimenez</dc:creator>
		<pubDate>Mon, 18 Apr 2011 17:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=3413#comment-804983</guid>
		<description>What type of file system was on this NFS server? Remember that NFS sits on top of the file system residing on the server you are exporting the share from. While I agree that NFS can be tricky, these aren&#039;t plug and play technologies so the makeup of system stack holistically has a huge impact on the performance. 

NFS is one of those technologies that either performs very well or very poorly, depending on how you configure it. I understand that the point of this article is not to be advice as much as a discussion starter, so I am just adding some more color to the picture :-).

ZFS based NFS on Solaris based kernels have had very impressive results, something to look into. You won&#039;t see anything like local or direct attached storage however....</description>
		<content:encoded><![CDATA[<p>What type of file system was on this NFS server? Remember that NFS sits on top of the file system residing on the server you are exporting the share from. While I agree that NFS can be tricky, these aren&#8217;t plug and play technologies so the makeup of system stack holistically has a huge impact on the performance. </p>
<p>NFS is one of those technologies that either performs very well or very poorly, depending on how you configure it. I understand that the point of this article is not to be advice as much as a discussion starter, so I am just adding some more color to the picture <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p>ZFS based NFS on Solaris based kernels have had very impressive results, something to look into. You won&#8217;t see anything like local or direct attached storage however&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2010/07/30/storing-mysql-binary-logs-on-nfs-volume/comment-page-1/#comment-770609</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Tue, 03 Aug 2010 23:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=3413#comment-770609</guid>
		<description>Copying Binary logs after they rotate is easy enough.  If you use NFS/GFS/DRBD volume for storage logs they are immediately available after Master crash which allows you to use that logs to bring Slave up to speed and have no transactions lost if you have sync_binlog=1  

Indeed the local storage is a lot faster you often can get over 10000 fsync/sec with local RAID while only some 3000 with NFS other 1GB ethernet.</description>
		<content:encoded><![CDATA[<p>Copying Binary logs after they rotate is easy enough.  If you use NFS/GFS/DRBD volume for storage logs they are immediately available after Master crash which allows you to use that logs to bring Slave up to speed and have no transactions lost if you have sync_binlog=1  </p>
<p>Indeed the local storage is a lot faster you often can get over 10000 fsync/sec with local RAID while only some 3000 with NFS other 1GB ethernet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2010/07/30/storing-mysql-binary-logs-on-nfs-volume/comment-page-1/#comment-770598</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Tue, 03 Aug 2010 19:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=3413#comment-770598</guid>
		<description>I think that people are looking for different things here:

1) get binlogs off the master to save space
2) get binlogs off the master to keep them safe

In my opinion, the best technology for item 2) is probably DRBD at the moment.</description>
		<content:encoded><![CDATA[<p>I think that people are looking for different things here:</p>
<p>1) get binlogs off the master to save space<br />
2) get binlogs off the master to keep them safe</p>
<p>In my opinion, the best technology for item 2) is probably DRBD at the moment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Callaghan</title>
		<link>http://www.mysqlperformanceblog.com/2010/07/30/storing-mysql-binary-logs-on-nfs-volume/comment-page-1/#comment-770592</link>
		<dc:creator>Mark Callaghan</dc:creator>
		<pubDate>Tue, 03 Aug 2010 18:20:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=3413#comment-770592</guid>
		<description>I would prefer to use network attached or remote storage as the place where binlog archiving is done rather than where the binlogs are written in the first place. 

Default InnoDB/MySQL doesn&#039;t report IO latency -- I think Percona Server does and I know the Facebook patch also does. I assume that binlog sync to local storage accelerated by HW RAID write cache is much faster than binlog sync to NFS. Given the lack of group commit in InnoDB that can make a huge difference.</description>
		<content:encoded><![CDATA[<p>I would prefer to use network attached or remote storage as the place where binlog archiving is done rather than where the binlogs are written in the first place. </p>
<p>Default InnoDB/MySQL doesn&#8217;t report IO latency &#8212; I think Percona Server does and I know the Facebook patch also does. I assume that binlog sync to local storage accelerated by HW RAID write cache is much faster than binlog sync to NFS. Given the lack of group commit in InnoDB that can make a huge difference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Callaghan</title>
		<link>http://www.mysqlperformanceblog.com/2010/07/30/storing-mysql-binary-logs-on-nfs-volume/comment-page-1/#comment-770591</link>
		<dc:creator>Mark Callaghan</dc:creator>
		<pubDate>Tue, 03 Aug 2010 18:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=3413#comment-770591</guid>
		<description>Yes, this allows for loss of transactions. But losing transactions from the last second might be much better than losing them from the last hour. I need sync replication in MySQL to avoid that or use DRBD to make it less likely. MariaDB is working on that with Galera.</description>
		<content:encoded><![CDATA[<p>Yes, this allows for loss of transactions. But losing transactions from the last second might be much better than losing them from the last hour. I need sync replication in MySQL to avoid that or use DRBD to make it less likely. MariaDB is working on that with Galera.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Casey</title>
		<link>http://www.mysqlperformanceblog.com/2010/07/30/storing-mysql-binary-logs-on-nfs-volume/comment-page-1/#comment-770590</link>
		<dc:creator>Patrick Casey</dc:creator>
		<pubDate>Tue, 03 Aug 2010 18:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=3413#comment-770590</guid>
		<description>Mark, I think you still have an issue of binlog corruption even if you&#039;ve put the binlogs on an NFS share don&#039;t you? If I lose the network interconnect or the master dies or something else &quot;bad&quot; happens, its not guaranteed that I have a consistent binlog on the NFS server. I might have an incomplete record at the end for example if we were in the middle of a write when the failure occurred.

So if your requirement is *absolutely no* transactions may be lost in a failure, then I don&#039;t think remote mounting the binlogs gets you there, although its probably marginally better than just running a slave.</description>
		<content:encoded><![CDATA[<p>Mark, I think you still have an issue of binlog corruption even if you&#8217;ve put the binlogs on an NFS share don&#8217;t you? If I lose the network interconnect or the master dies or something else &#8220;bad&#8221; happens, its not guaranteed that I have a consistent binlog on the NFS server. I might have an incomplete record at the end for example if we were in the middle of a write when the failure occurred.</p>
<p>So if your requirement is *absolutely no* transactions may be lost in a failure, then I don&#8217;t think remote mounting the binlogs gets you there, although its probably marginally better than just running a slave.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Callaghan</title>
		<link>http://www.mysqlperformanceblog.com/2010/07/30/storing-mysql-binary-logs-on-nfs-volume/comment-page-1/#comment-770588</link>
		<dc:creator>Mark Callaghan</dc:creator>
		<pubDate>Tue, 03 Aug 2010 18:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=3413#comment-770588</guid>
		<description>Replication doesn&#039;t archive the master&#039;s binlog. Were that the case, then failing a slave to a new master without losing transactions would be trivial. Today you get to play the game of finding the offset on the new master that corresponds to the offset from the old master. Or you can use global transaction IDs from the Google patch.

Replication is also much more expensive than archiving the binlog. I want to use both but I don&#039;t want to pay for the hardware on a slave when all that I need is a binlog archive solution.</description>
		<content:encoded><![CDATA[<p>Replication doesn&#8217;t archive the master&#8217;s binlog. Were that the case, then failing a slave to a new master without losing transactions would be trivial. Today you get to play the game of finding the offset on the new master that corresponds to the offset from the old master. Or you can use global transaction IDs from the Google patch.</p>
<p>Replication is also much more expensive than archiving the binlog. I want to use both but I don&#8217;t want to pay for the hardware on a slave when all that I need is a binlog archive solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristian KÃ¶hntopp</title>
		<link>http://www.mysqlperformanceblog.com/2010/07/30/storing-mysql-binary-logs-on-nfs-volume/comment-page-1/#comment-770586</link>
		<dc:creator>Kristian KÃ¶hntopp</dc:creator>
		<pubDate>Tue, 03 Aug 2010 18:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=3413#comment-770586</guid>
		<description>Where I work and have been working in the past, NFS fails more often than anything else. Also, the recovery is usually only through a box reboot instead of service restart or even SIGHUP, so this is also the worst possible behavior.

Live binlog shipping exists as well - it is called replication (START SLAVE IO_THREAD, and STOP SLAVE SQL_THREAD, if you are really paranoid; or a time delayed slave, if MySQL were to integrate patches for that into replication after all). But a simple binlog_cycle_command, that would be really easy, and quite useful.</description>
		<content:encoded><![CDATA[<p>Where I work and have been working in the past, NFS fails more often than anything else. Also, the recovery is usually only through a box reboot instead of service restart or even SIGHUP, so this is also the worst possible behavior.</p>
<p>Live binlog shipping exists as well &#8211; it is called replication (START SLAVE IO_THREAD, and STOP SLAVE SQL_THREAD, if you are really paranoid; or a time delayed slave, if MySQL were to integrate patches for that into replication after all). But a simple binlog_cycle_command, that would be really easy, and quite useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Casey</title>
		<link>http://www.mysqlperformanceblog.com/2010/07/30/storing-mysql-binary-logs-on-nfs-volume/comment-page-1/#comment-770584</link>
		<dc:creator>Patrick Casey</dc:creator>
		<pubDate>Tue, 03 Aug 2010 17:14:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=3413#comment-770584</guid>
		<description>I&#039;ve had NFS mount points lock up on my production servers before, mounting a RedHat NFS point onto a RedHat server.
Triggering factor is usually, but not always, some sort of network interrupt.
I back up onto NFS mount points, but I don&#039;t run anything realtime critical on them.

From my perspective, putting the binlogs on an NFS server triples my failure domain.

I lose the database if:
1) DB server dies
2) NFS mount point dies
3) NFS server dies

I&#039;d rather risk losing a few binlogs than increase my risk of a service interruption. Naturally, everybody&#039;s use case varies :)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve had NFS mount points lock up on my production servers before, mounting a RedHat NFS point onto a RedHat server.<br />
Triggering factor is usually, but not always, some sort of network interrupt.<br />
I back up onto NFS mount points, but I don&#8217;t run anything realtime critical on them.</p>
<p>From my perspective, putting the binlogs on an NFS server triples my failure domain.</p>
<p>I lose the database if:<br />
1) DB server dies<br />
2) NFS mount point dies<br />
3) NFS server dies</p>
<p>I&#8217;d rather risk losing a few binlogs than increase my risk of a service interruption. Naturally, everybody&#8217;s use case varies <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

