<div dir="ltr">Jan,<div><br></div><div>But as you said they all have to be in the same cluster, correct ?</div></div><div class="gmail_extra"><br clear="all"><div>Dave Cramer</div>
<br><div class="gmail_quote">On 9 October 2014 18:31, Jan Wieck <span dir="ltr">&lt;<a href="mailto:jan@wi3ck.info" target="_blank">jan@wi3ck.info</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/09/2014 05:26 PM, Glyn Astill wrote:<br>
&gt;&gt; From: Granthana Biswas &lt;<a href="mailto:granthana.biswas@gmail.com">granthana.biswas@gmail.com</a>&gt;<br>
&gt;&gt;To: Glyn Astill &lt;<a href="mailto:glynastill@yahoo.co.uk">glynastill@yahoo.co.uk</a>&gt;<br>
&gt;&gt;Sent: Thursday, 9 October 2014, 16:34<br>
&gt;&gt;Subject: Re: [Slony1-general] Error with Slony replication from another slony cluster slave<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;Hi Glyn,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;In my case I have two clusters:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;Cluster1 -&gt;  replicating from DB1 -&gt; DB2<br>
&gt;&gt;Cluster2 -&gt;  replicating from DB1 -&gt; DB3<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;Can I stop Cluster2 and add DB3 to Cluster1 with DB2 as its master? Or do I have to delete the data first in DB3?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; You&#39;ll want to run DROP NODE against each node in Cluster2, (or if on 2.0+ you can get away with just DROP SCHEMA _Cluster2 CASCADE) and stop the slons for Cluster2.<br>
<br>
<br>
Cascading, forwarding and all that is one of the core concepts of Slony.<br>
If you create one single setup looking like this:<br>
<br>
     DB1 -&gt; DB2 -&gt; DB3<br>
<br>
then you have a lot more flexibility and functionality than is obvious<br>
at first. Aside from being able to fail over to DB2.<br>
<br>
Slony will let you &quot;MOVE&quot; the master role from DB1 to DB2. That<br>
operation will not just make DB2 the master, but at the same time DB1<br>
becomes a replica that doesn&#39;t need an initial sync, so your setup now<br>
would look like this:<br>
<br>
     DB1 &lt;- DB2 -&gt; DB3<br>
<br>
This is useful if you need to perform some maintenance on DB1. At this<br>
point DB2 is your master an you would just stop the slon process for<br>
DB1, do whatever you need to do, and start the slon process again. Once<br>
DB1 has caught up, you just transfer the master role back and everything<br>
is as it was.<br>
<br>
What also works is that if you need to perform maintenance on DB2, it<br>
doesn&#39;t mean that DB3 has to fall behind too. You can easily change the<br>
data provider for DB3 to be DB1, so your configuration changes to<br>
<br>
     DB1 -&gt; DB2<br>
      |<br>
      V<br>
     DB3<br>
<br>
At this point you stop the slon process for DB2, perform what you need<br>
to do on DB2, start the slon process and after DB2 has caught up, make<br>
it the data provider for DB3 again.<br>
<br>
<br>
Regards,<br>
Jan<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Jan Wieck<br>
Senior Software Engineer<br>
<a href="http://slony.info" target="_blank">http://slony.info</a><br>
_______________________________________________<br>
Slony1-general mailing list<br>
<a href="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</a><br>
<a href="http://lists.slony.info/mailman/listinfo/slony1-general" target="_blank">http://lists.slony.info/mailman/listinfo/slony1-general</a><br>
</font></span></blockquote></div><br></div>