<div dir="ltr">Sorry for the mistypings, the correct inserted section is: <div><div>backend_hostname2 = &#39;pool-3&#39;</div><div>backend_port2 = 5433</div><div>backend_weight2 = 1</div><div>backend_data_directory2 = &#39;/var/lib/postgresql/9.3/main/&#39;</div>

<div>backend_flag2 = &#39;ALLOW_TO_FAILOVER&#39;</div></div><div><br></div><div>After once this operation killed the replication, I can not easily ever start it again with just two nodes either.</div><div><br></div><div>
and a different question: how the configurations of the pools being clustered will be replicated? Is the only way doing it by hand?</div>
<div><br></div><div>[[ pgpooladmin for example doesn&#39;t do anything with the configs on the failover pgpools. It cannot even detect if pgpool is running, or not, but I guess this is because the pid file is not created at all, which is a problem too, but I don&#39;t really care pgpooladmin at the moment. ]]</div>

<div><br></div><div><br></div><div>Attila</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-11 15:21 GMT+01:00 Attila Heidrich <span dir="ltr">&lt;<a href="mailto:attila.heidrich@gmail.com" target="_blank">attila.heidrich@gmail.com</a>&gt;</span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div>Dear All!<br><br></div>I have read many docs, but still have totally silly problems, like the following:<br>

<br></div>I run two Debian 7.3 boxes, with postgresql 9.3 and pgpool 3. on each.<br>
</div>I use  pgpool&#39;s own wd mech.<br><br></div>It seems to work fine in this scenario, but everything fails when I add a 3rd backend node.<br><br></div>I just insert the following section into both pgpool.conf:<br><br>


backend_hostname2 = &#39;pool-3&#39;<br>backend_port1 = 5433<br>backend_weight1 = 1<br>backend_data_directory1 = &#39;/var/lib/postgresql/9.3/main/&#39;<br>backend_flag1 = &#39;ALLOW_TO_FAILOVER&#39;<br><br></div>after the first and the second, which are the same, just with backend_hostname0 = &#39;pool-1&#39;, and backend_hostname1 = &#39;pool-2&#39; respectively. pgpool replication works with the two nodes.<br>


<br></div><div>Stop pgpools<br>Stop database<br>rsync the master database to the 3rd node (I would like to have online sync, but always got backend_error, so I have decided to start with offline sync)<br>start all databases<br>


</div><div>start pgpool#1<br></div><div>start pgpool#2 (I have experienced that starting at once doesn&#39;t make any sense, it usually doesn&#39;t work such way, some, or all of the pgpool nodes should be restarted)<br>

</div>
<div><br></div>And pgpool stops replicating, although the pools see each other, wd seems to work.  Any DB operation goes only the db on the active pool node.<br><br></div>What do I do wrong??<br><br></div>Regards,<br><br>


Attila<br></div>
</blockquote></div><br></div>