<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>We recently attempted a test of our failover procedure and
it brought to light a few issues with our slony configuration. The one thing I&#8217;m
still not certain about is the precise order of steps I should take when doing
the failover, and I&#8217;m beginning to wonder if it&#8217;s because I have a
sub-optimal slony configuration.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>We&#8217;re basically working with 4 servers in two cities
(2 per city) and I want to plan for total failure in a single city.&nbsp;
Currently the replication works in this manner:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Node 1 -&gt; Node 2 -&gt; Node 3 -&gt; Node 4<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Node 1 and Node 2 are in one city and 3 &amp; 4 in another.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Having reviewed the Slony failover documentation (<a
href="http://www.slony.info/documentation/failover.html">http://www.slony.info/documentation/failover.html</a>
) I get that if I had everything subscribed to node 1, I would first subscribe
node 4 to node 3, drop node 2, then failover node 1 to node 3. The setup I have
in place means I don&#8217;t need to move the subscription, but I can&#8217;t
just drop node 2. Should I then do the following?<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>failover (id = 2, backup node = 3);<o:p></o:p></p>

<p class=MsoNormal>failover (id = 1, backup node = 3);<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>drop node (id = 2, event node = 3);<o:p></o:p></p>

<p class=MsoNormal>drop node (id = 1, event node = 3);<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I originally tried to just failover from 1 to 3 which seemed
to cause several issues, but I later realized that some of them were due to
other configuration choices I had made (ie. Not all nodes subscribed to certain
sets and such. Will be changing that.) Still, knowing how slony seems to like
to work from the end first, failing node 2 then node 1 seems logical.<o:p></o:p></p>

</div>

</body>

</html>