<div dir="ltr">Not exactly.<div><br></div><div>Two Linux boxes, both with pgpool and postgresql. Pools use watchdog and &quot;virtual IP&quot; for HA, the two postgresql servers are the backend.</div><div><br></div><div>I don&#39;t think it is good for anything, but let&#39;s try:</div>

<div><br></div><div>              /-&gt;pg-1(pool:5432)---+---+--pg:5433</div><div>Virt-IP --+                               X</div><div>              \-&gt;pg-2(pool:5432)---+---+--pg:5433</div><div><br></div><div>Is there really something strange? It looks quite straightforward for me.</div>

<div><br></div><div>Anyway, specifying localhost and other server didn&#39;t work, I now use &quot;myhostname&quot;, &quot;otherhostname&quot; for the two backends, on both pool members. Seems to work, do the replication.</div>

<div>Still there&#39;s that if I use pcp, I get the backends in different order on both pool members. Still do not really understand, why pool members in a HA configuration doesn&#39;t share the backend configuration.</div>

<div><br></div><div>I have just discovered a weekness of our configuration (two identical servers replicating): If I have any problem other than a hardware issue, I will very probably have this on both.</div><div><br></div>

<div>Regards,</div><div><br></div><div>Attila</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-11 1:09 GMT+02:00 Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>&gt;</span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im HOEnZb">[Back to to mailing list]<br>
Please reply to the mailing list, rather than me...<br>
<br>
If my understanding is correct, this looks like a &quot;cascade&quot; and<br>
&quot;circular&quot; configuration.<br>
<br>
            +--------------------+<br>
            |                    |<br>
            |                    v<br>
postgres-1--+-&gt;postgres-2--+-&gt;PostgreSQL<br>
^                          |<br>
|                          |<br>
+--------------------------+<br>
<br>
What&#39;s the point of the configuration?<br>
<br>
</div><div class="HOEnZb"><div class="h5">Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
<br>
&gt; It&#39;s very easy, the relevant part is here:<br>
&gt;<br>
&gt; node postgres-2:<br>
&gt; -----------------------<br>
&gt; backend_hostname0 = &#39;localhost&#39;<br>
&gt; backend_port0 = 5433<br>
&gt; backend_weight0 = 1<br>
&gt; backend_data_directory0 = &#39;/var/lib/postgresql/9.3&#39;<br>
&gt; backend_flag0 = &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt;<br>
&gt;<br>
&gt; backend_hostname1 = &#39;postgres-1&#39;<br>
&gt; backend_port1 = 5433<br>
&gt; backend_weight1 = 1<br>
&gt; backend_data_directory1 = &#39;/var/lib/postgresql/9.3&#39;<br>
&gt; backend_flag1 = &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt;<br>
&gt; node postgres-1:<br>
&gt; -----------------------<br>
&gt; backend_hostname0 = &#39;localhost&#39;<br>
&gt; backend_port0 = 5433<br>
&gt; backend_weight0 = 1<br>
&gt; backend_data_directory0 = &#39;/var/lib/postgresql/9.3&#39;<br>
&gt; backend_flag0 = &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt;<br>
&gt;<br>
&gt; backend_hostname1 = &#39;postgres-2&#39;<br>
&gt; backend_port1 = 5433<br>
&gt; backend_weight1 = 1<br>
&gt; backend_data_directory1 = &#39;/var/lib/postgresql/9.3&#39;<br>
&gt; backend_flag1 = &#39;ALLOW_TO_FAILOVER&#39;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2014-04-04 1:10 GMT+02:00 Tatsuo Ishii &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt;:<br>
&gt;<br>
&gt;&gt; I&#39;m a little bit confused. Can you show your pgpool.conf?<br>
&gt;&gt;<br>
&gt;&gt; Best regards,<br>
&gt;&gt; --<br>
&gt;&gt; Tatsuo Ishii<br>
&gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt; English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
&gt;&gt; Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
&gt;&gt;<br>
&gt;&gt; &gt; Hi!<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Just a simple question:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Is the order of the nodes important for the pgpool cluster-members?<br>
&gt;&gt; &gt; I guess the answer is no, since only one pool member will be active at<br>
&gt;&gt; any<br>
&gt;&gt; &gt; time, the only important is to enumerate all the backends for all the<br>
&gt;&gt; pool<br>
&gt;&gt; &gt; members...<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; But still I would like to know.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Currently I use localhost as backend0 for all the nodes, and enumerate<br>
&gt;&gt; all<br>
&gt;&gt; &gt; other backends in some order starting from backend1.<br>
&gt;&gt; &gt; The configs are generated from data tables (called pillars) by saltstack,<br>
&gt;&gt; &gt; currently I do not specify any order.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The only strange thing is, that running pcp_node_info gives different<br>
&gt;&gt; &gt; result for the same node number on all members.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Regards,<br>
&gt;&gt; &gt; Attila<br>
&gt;&gt;<br>
</div></div></blockquote></div><br></div>