blob: 0537847f183783cb57b360d1b166f63de246a815 [file] [log] [blame]
<div class="wiki-content maincontent"><h2>Introduction to Master / Slave</h2>
<p>The following are the different kinds of Master/Slave configurations available:</p>
<table><tbody><tr><th colspan="1" rowspan="1"><p>Master Slave Type </p></th><th colspan="1" rowspan="1"><p> Requirements </p></th><th colspan="1" rowspan="1"><p> Pros </p></th><th colspan="1" rowspan="1"><p> Cons </p></th></tr><tr><td colspan="1" rowspan="1"><p> <link><page ri:content-title="Shared File System Master Slave"></page></link> </p></td><td colspan="1" rowspan="1"><p> A shared file system such as a SAN </p></td><td colspan="1" rowspan="1"><p> Run as many slaves as required. Automatic recovery of old masters </p></td><td colspan="1" rowspan="1"><p> Requires shared file system </p></td></tr><tr><td colspan="1" rowspan="1"><p> <link><page ri:content-title="JDBC Master Slave"></page></link> </p></td><td colspan="1" rowspan="1"><p> A Shared database </p></td><td colspan="1" rowspan="1"><p> Run as many slaves as required. Automatic recovery of old masters </p></td><td colspan="1" rowspan="1"><p> Requires a shared database. Also relatively slow as it cannot use the high performance journal </p></td></tr><tr><td colspan="1" rowspan="1"><p> <link><page ri:content-title="Replicated LevelDB Store"></page></link> </p></td><td colspan="1" rowspan="1"><p> ZooKeeper Server </p></td><td colspan="1" rowspan="1"><p> Run as many slaves as required. Automatic recovery of old masters. Very fast. </p></td><td colspan="1" rowspan="1"><p> Requires a ZooKeeper server. </p></td></tr></tbody></table>
<p>If you are using a shared network file system such as a SAN we recommend a <link><page ri:content-title="Shared File System Master Slave"></page></link>. If you are happy to dispense with the high performance journal and are using pure JDBC as your persistence engine then you should use <link><page ri:content-title="JDBC Master Slave"></page></link> instead. For those willing to try out new tech, the <link><page ri:content-title="Replicated LevelDB Store"></page></link> gives speeds similar to a SAN solution without the hassle of having to setup a highly available shared file system.</p></div>