<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>MySQL-dump - Replication</title>
    <link>http://mysqldump.azundris.com/</link>
    <description>my life with MySQL</description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:mysqldump@mysqldump.azundris.com" />
    <generator>Serendipity 1.2-beta2 - http://www.s9y.org/</generator>
    
    <image>
        <url>http://mysqldump.azundris.com/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: MySQL-dump - Replication - my life with MySQL</title>
        <link>http://mysqldump.azundris.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Replication - now and then</title>
    <link>http://mysqldump.azundris.com/archives/71-Replication-now-and-then.html</link>
            <category>Replication</category>
    
    <comments>http://mysqldump.azundris.com/archives/71-Replication-now-and-then.html#comments</comments>
    <wfw:comment>http://mysqldump.azundris.com/wfwcomment.php?cid=71</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://mysqldump.azundris.com/rss.php?version=2.0&amp;type=comments&amp;cid=71</wfw:commentRss>
    

    <author>kris@koehntopp.de (Kristian Köhntopp)</author>
    <content:encoded>
    One of the major contributing factors to the success of MySQL is the ease and simplicity of its replication. Read-slaves for scaleout and backup-slaves for noninterrupting backups are the norm in any MySQL installation I have seen in the last two years.&lt;br /&gt;
&lt;br /&gt;
So how does replication work? And how shall it be expanded in the future?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;What is available?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The binlog written by MySQL currently logs all statements changing the tablespace. It is a serialization of all tablespace changes. The binlog position, expressed as (binlog name, offset), is a database global timestamp - a timestamp expressed in seconds.fraction does not work for any precision at all, because on a multi-core machine multiple things can happen concurrently.&lt;br /&gt;
&lt;br /&gt;
If you want to make a consistent full backup of the database, the database must not change during the backup. That is, it must be possible to associate one and exactly one binlog position with the backup.&lt;br /&gt;
&lt;br /&gt;
In fact, if you have such a backup - one associated with a binlog position - and you happen to have the binlogs from that time until now, it is possible to do a point-in-time (PIT) recovery. You&#039;d recover from the full backup and you&#039;d then replay the binlog from the backups binlog position until now. That is why it is important to store the binlog in a filesystem that fails independently from the rest of your MySQL. That&#039;s also why you must not filter the binlog that is written by MySQL using binlog-do-db and binlog-ignore-db - if you do, you&#039;ll get an incomplete binlog that will fail to be useful in a PIT recovery scenario.&lt;br /&gt;
&lt;br /&gt;
A slave in MySQL is now nothing but a binlog downloader and executor: The slave must be restored from a PIT-capable full backup. It is then being told the current binlog position and where to log in to get the missing binlog. The slaves IO_THREAD will then log into the master server and download the binlog to the local disk as fast as possible, storing it as the relay log. The slaves SQL_THREAD will then start to execute the relay log as fast as possible. Replication can thus be thought of as an ongoing live recovery.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;&lt;a href=&quot;http://mysqldump.azundris.com/archives/71-Replication-now-and-then.html#extended&quot;&gt;Continue reading &quot;Replication - now and then&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 11 Jul 2007 07:42:05 +0200</pubDate>
    <guid isPermaLink="false">http://mysqldump.azundris.com/archives/71-guid.html</guid>
    
</item>

</channel>
</rss>