<html><head><meta http-equiv="Content-Type" content="text/html charset=koi8-r"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I have left two backends in config and restarted pgpool. It still does't work for me :( But after turning the debug off I have seen next thing (full log is below):</div><div>All ERROR lines appear when I try to establish a new connection to pgpool. And every time I do it, it is starting degeneration. But still nothing works. It seems that after shutting down backend0 it has seen it (according to lines "failover done") but all new connection still tried to connect to backend0.</div><div>Any ideas? Should I give you more complex diagnostics?</div><div><br></div><div><div>2013-04-11 18:47:29 LOG: &nbsp; pid 485: pgpool-II successfully started. version 3.2.0 (namameboshi)</div><div>2013-04-11 18:47:41 LOG: &nbsp; pid 518: postmaster on DB node 0 was shutdown by administrative command</div><div>2013-04-11 18:47:41 LOG: &nbsp; pid 518: degenerate_backend_set: 0 fail over request from pid 518</div><div>2013-04-11 18:47:41 LOG: &nbsp; pid 485: starting degeneration. shutdown host <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432)</div><div>2013-04-11 18:47:41 LOG: &nbsp; pid 485: Restart all children</div><div>2013-04-11 18:47:41 LOG: &nbsp; pid 485: failover: set new primary node: -1</div><div>2013-04-11 18:47:41 LOG: &nbsp; pid 485: failover: set new master node: 0</div><div>2013-04-11 18:47:41 LOG: &nbsp; pid 485: failover done. shutdown host <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432)</div><div>2013-04-11 18:47:41 LOG: &nbsp; pid 520: worker process received restart request</div><div>2013-04-11 18:47:42 LOG: &nbsp; pid 519: pcp child process received restart request</div><div>2013-04-11 18:47:42 LOG: &nbsp; pid 485: worker child 520 exits with status 256</div><div>2013-04-11 18:47:42 LOG: &nbsp; pid 485: fork a new worker child pid 597</div><div>2013-04-11 18:47:42 LOG: &nbsp; pid 485: PCP child 519 exits with status 256</div><div>2013-04-11 18:47:42 LOG: &nbsp; pid 485: fork a new PCP child pid 598</div><div>2013-04-11 18:47:44 ERROR: pid 563: connect_inet_domain_socket: connect() failed: Connection refused</div><div>2013-04-11 18:47:44 ERROR: pid 563: connection to <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432) failed</div><div>2013-04-11 18:47:44 ERROR: pid 563: new_connection: create_cp() failed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:44 LOG: &nbsp; pid 563: degenerate_backend_set: 0 fail over request from pid 563 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:44 LOG: &nbsp; pid 485: starting degeneration. shutdown host <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>2013-04-11 18:47:44 LOG: &nbsp; pid 485: Restart all children &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:44 LOG: &nbsp; pid 485: failover: set new primary node: -1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:44 LOG: &nbsp; pid 485: failover: set new master node: 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:44 LOG: &nbsp; pid 485: failover done. shutdown host <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>2013-04-11 18:47:44 LOG: &nbsp; pid 597: worker process received restart request &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>2013-04-11 18:47:45 LOG: &nbsp; pid 598: pcp child process received restart request &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:45 LOG: &nbsp; pid 485: worker child 597 exits with status 256 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:45 LOG: &nbsp; pid 485: fork a new worker child pid 637 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>2013-04-11 18:47:45 LOG: &nbsp; pid 485: PCP child 598 exits with status 256 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>2013-04-11 18:47:45 LOG: &nbsp; pid 485: fork a new PCP child pid 638 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:55 ERROR: pid 603: connect_inet_domain_socket: connect() failed: Connection refused &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:55 ERROR: pid 603: connection to <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432) failed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>2013-04-11 18:47:55 ERROR: pid 603: new_connection: create_cp() failed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:55 LOG: &nbsp; pid 603: degenerate_backend_set: 0 fail over request from pid 603 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:55 LOG: &nbsp; pid 485: starting degeneration. shutdown host <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>2013-04-11 18:47:55 LOG: &nbsp; pid 485: Restart all children &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:55 LOG: &nbsp; pid 485: failover: set new primary node: -1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>2013-04-11 18:47:55 LOG: &nbsp; pid 485: failover: set new master node: 0</div><div>2013-04-11 18:47:55 LOG: &nbsp; pid 485: failover done. shutdown host <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432)</div><div>2013-04-11 18:47:55 LOG: &nbsp; pid 637: worker process received restart request</div><div>2013-04-11 18:47:56 LOG: &nbsp; pid 638: pcp child process received restart request</div><div>2013-04-11 18:47:56 LOG: &nbsp; pid 485: worker child 637 exits with status 256</div><div>2013-04-11 18:47:56 LOG: &nbsp; pid 485: fork a new worker child pid 675</div><div>2013-04-11 18:47:56 LOG: &nbsp; pid 485: PCP child 638 exits with status 256</div><div>2013-04-11 18:47:56 LOG: &nbsp; pid 485: fork a new PCP child pid 676</div><div>2013-04-11 18:48:41 ERROR: pid 674: connect_inet_domain_socket: connect() failed: Connection refused</div><div>2013-04-11 18:48:41 ERROR: pid 674: connection to <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432) failed</div><div>2013-04-11 18:48:41 ERROR: pid 674: new_connection: create_cp() failed</div><div>2013-04-11 18:48:41 LOG: &nbsp; pid 674: degenerate_backend_set: 0 fail over request from pid 674</div><div>2013-04-11 18:48:41 LOG: &nbsp; pid 485: starting degeneration. shutdown host <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432)</div><div>2013-04-11 18:48:41 LOG: &nbsp; pid 485: Restart all children</div><div>2013-04-11 18:48:41 LOG: &nbsp; pid 485: failover: set new primary node: -1</div><div>2013-04-11 18:48:41 LOG: &nbsp; pid 485: failover: set new master node: 0</div><div>2013-04-11 18:48:41 LOG: &nbsp; pid 485: failover done. shutdown host <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432)</div><div>2013-04-11 18:48:41 LOG: &nbsp; pid 675: worker process received restart request</div><div>2013-04-11 18:48:42 LOG: &nbsp; pid 676: pcp child process received restart request</div><div>2013-04-11 18:48:42 LOG: &nbsp; pid 485: worker child 675 exits with status 256</div><div>2013-04-11 18:48:42 LOG: &nbsp; pid 485: fork a new worker child pid 720</div><div>2013-04-11 18:48:42 LOG: &nbsp; pid 485: PCP child 676 exits with status 256</div><div>2013-04-11 18:48:42 LOG: &nbsp; pid 485: fork a new PCP child pid 721</div><div>2013-04-11 18:48:46 ERROR: pid 718: connect_inet_domain_socket: connect() failed: Connection refused</div><div>2013-04-11 18:48:46 ERROR: pid 718: connection to <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432) failed</div><div>2013-04-11 18:48:46 ERROR: pid 718: new_connection: create_cp() failed</div><div>2013-04-11 18:48:46 LOG: &nbsp; pid 718: degenerate_backend_set: 0 fail over request from pid 718</div><div>2013-04-11 18:48:46 LOG: &nbsp; pid 485: starting degeneration. shutdown host <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432)</div><div>2013-04-11 18:48:46 LOG: &nbsp; pid 485: Restart all children</div><div>2013-04-11 18:48:46 LOG: &nbsp; pid 485: failover: set new primary node: -1</div><div>2013-04-11 18:48:46 LOG: &nbsp; pid 485: failover: set new master node: 0</div><div>2013-04-11 18:48:46 LOG: &nbsp; pid 485: failover done. shutdown host <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a>(5432)</div><div>2013-04-11 18:48:46 LOG: &nbsp; pid 720: worker process received restart request</div><div>2013-04-11 18:48:47 LOG: &nbsp; pid 721: pcp child process received restart request</div><div>2013-04-11 18:48:47 LOG: &nbsp; pid 485: worker child 720 exits with status 256</div><div>2013-04-11 18:48:47 LOG: &nbsp; pid 485: fork a new worker child pid 781</div><div>2013-04-11 18:48:47 LOG: &nbsp; pid 485: PCP child 721 exits with status 256</div><div>2013-04-11 18:48:47 LOG: &nbsp; pid 485: fork a new PCP child pid 782</div></div><br><div><div>11.04.2013, в 18:31, Tatsuo Ishii &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt; написал(а):</div><br class="Apple-interchange-newline"><blockquote type="cite">I didn't notice you are using raw mode. Sorry.<br><br><blockquote type="cite">Thanks for reply. Here [1] I found such information:<br><br>"Failover can be performed in raw mode if multiple servers are defined. pgpool-II usually accesses the backend specified by backend_hostname0 during normal operation. If the backend_hostname0 fails for some reason, pgpool-II tries to access the backend specified by backend_hostname1. If that fails, pgpool-II tries the backend_hostname2, 3 and so on."<br><br>And I want to see the described above behavior. Could you give an example of what should I write to failover_command in that case?<br></blockquote><br>No, in raw mode, you don't need to set it. I just tried raw mode/2-<br>node configuration and it seems to work as expected: if node 0 is<br>down, then pgpool allows to access node 1. If you try with 2<br>backends(not 3 backends), does it work?<br>--<br>Tatsuo Ishii<br>SRA OSS, Inc. Japan<br>English: <a href="http://www.sraoss.co.jp/index_en.php">http://www.sraoss.co.jp/index_en.php</a><br>Japanese: <a href="http://www.sraoss.co.jp">http://www.sraoss.co.jp</a><br><br><blockquote type="cite">[1] <a href="http://pgpool.projects.pgfoundry.org/pgpool-II/doc/pgpool-en.html">http://pgpool.projects.pgfoundry.org/pgpool-II/doc/pgpool-en.html</a><br><br>11.04.2013, в 17:51, Tatsuo Ishii &lt;<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>&gt; написал(а):<br><br><blockquote type="cite">You need to set failover_command. Yours is empty, so nothing will<br>happen.<br>--<br>Tatsuo Ishii<br>SRA OSS, Inc. Japan<br>English: <a href="http://www.sraoss.co.jp/index_en.php">http://www.sraoss.co.jp/index_en.php</a><br>Japanese: <a href="http://www.sraoss.co.jp">http://www.sraoss.co.jp</a><br><br><blockquote type="cite">ping. Can anybody help?<br><br>09.04.2013, в 15:24, Бородин Владимир &lt;<a href="mailto:root@simply.name">root@simply.name</a>&gt; написал(а):<br><br><blockquote type="cite">Hi all.<br><br>I've read much information about failover in raw mode but I haven't found the solution yet.<br><br>I have 3 PostgreSQL nodes running in streaming replication mode - <a href="http://loadtest01g.domain.com">loadtest01g.domain.com</a> (master), <a href="http://loadtest02g.domain.com">loadtest02g.domain.com</a> <a href="http://andloadtest04g.domain.com">andloadtest04g.domain.com</a> (two replicas in hot_standby mode). All of them are listening 0.0.0.0:5432. All of them have the line below in pg_hba.conf (that is a disgusting idea but these hosts are for testing):<br>host &nbsp;&nbsp;&nbsp;all &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;all &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0.0.0.0/0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;trust<br>I &nbsp;can connect to any of them with psql and issue select queries.<br><br>On loadtest01g I have installed pgpool-II-3.2 and taken the sample config with some modifications (backend addresses, debug_level and timeouts). Config - <a href="http://simply.name/tmp/pgpool.conf">http://simply.name/tmp/pgpool.conf</a> and log - <a href="http://simply.name/tmp/pgpool.log">http://simply.name/tmp/pgpool.log</a>.<br><br>I get the following problem: <br>pgpool does not failover to backend1 (loadtest02g) if backend0 (loadtest01g) fails down. According to log it catches the primary failure but doesn't send queries to one of the replicas.<br><br>The question is what do I do wrong?<br><br>--<br>Vladimir<br>_______________________________________________<br>pgpool-general mailing list<br><a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>http://www.pgpool.net/mailman/listinfo/pgpool-general<br></blockquote><br><br>--<br>Vladimir<br><br><br><br><br></blockquote></blockquote><br><br>--<br>Vladimir<br><br></blockquote></blockquote></div><br><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline">--</div><div>Vladimir</div><div><br></div></div><br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br class="Apple-interchange-newline">
</div>

<br></body></html>