psql -h 10.0.3.3 -p 9999 -U postgres<br>postgres>show pool_status;<br><br><br><br><div class="gmail_quote">On Sun, May 27, 2012 at 5:48 PM, Tatsuo Ishii <span dir="ltr"><<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How was "show pool_status" output then?<br>
<div class="HOEnZb"><div class="h5">--<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>
> Yes, it's sure that postgresql on two backends running, because I can use<br>
> psql connect to them!<br>
><br>
> On Sun, May 27, 2012 at 4:42 PM, Tatsuo Ishii <<a href="mailto:ishii@postgresql.org">ishii@postgresql.org</a>> wrote:<br>
><br>
>> Are you sure that postgresql on 10.0.3.12 is running?  If so, execute<br>
>> "show pool_status" command and check value "backend_status1". That<br>
>> will show the status of backend1 from the point of view of pgpool.  If<br>
>> pgpool thinks backend1 is not healthy, it does not send create<br>
>> database command to backend1.<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>
>> > I install pgpool-II 3.1.3 from source on machine 10.0.3.3 and I have to<br>
>> > postgres backends (postgresql 9.1) at 10.0.3.12 and 10.0.3.186<br>
>> respectively.<br>
>> > I have the following configuration for the pgpool.conf.<br>
>> ><br>
>> > After I use "psql -h 10.0.3.3 -p 9999 -U postgres" to connect pgpool from<br>
>> > another machine I can connect correctly and I do "create database xxxxx<br>
>> > with xxxx" successfully.<br>
>> > But if I check the backend DB server, only one server (backend_hostname0)<br>
>> > has the databse xxxx create correctly, there is no this database at<br>
>> > backend_hostname1.<br>
>> ><br>
>> > Could you please help indicate why. Thanks!<br>
>> ><br>
>> > backend_hostname0 = '10.0.3.12'<br>
>> >                                    # Host name or IP address to connect<br>
>> to<br>
>> > for bb<br>
>> > ackend 0<br>
>> > backend_port0 = 5432<br>
>> >                                    # Port number for backend 0<br>
>> > backend_weight0 = 1<br>
>> >                                    # Weight for backend 0 (only in load<br>
>> > balancinn<br>
>> > g mode)<br>
>> > backend_data_directory0 = '/etc/postgresql/9.1/main'<br>
>> >                                    # Data directory for backend 0<br>
>> > backend_flag0 = 'ALLOW_TO_FAILOVER'<br>
>> >                                    # Controls various backend behavior<br>
>> >                                    # ALLOW_TO_FAILOVER or<br>
>> > DISALLOW_TO_FAILOVER<br>
>> > backend_hostname1 = '10.0.3.186'<br>
>> > backend_port1 = 5432<br>
>> > backend_weight1 = 1<br>
>> > backend_data_directory1 = '/etc/postgresql/9.1/main'<br>
>> > backend_flag1 = 'ALLOW_TO_FAILOVER'<br>
>> ><br>
>> > .....<br>
>> ><br>
>> > replication_mode = on<br>
>> > ....<br>
>> > load_balance_mode = on<br>
>> >                                    # Activate load balancing mode<br>
>> >                                    # (change requires restart)<br>
>> > ignore_leading_white_space = on<br>
>> ><br>
>> ><br>
>> > --<br>
>> ><br>
>> > Best regards,<br>
>> > Barco<br>
>><br>
><br>
><br>
><br>
> --<br>
><br>
> Best regards,<br>
> Barco<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>Best regards,<br>Barco<br><br>