[pgpool-general-jp: 840] Re: pgpool-II 3.0 レプリケーションモードの台数について

Tatsuo Ishii ishii @ sraoss.co.jp
2010年 10月 19日 (火) 18:42:01 JST


石井です。

> 菊池と申します。
> 
> pgpool-II 3.0でレプリケーション対象3台のサーバで運用を考えています。
> 3台でテストしましたが2台にしか反映されません。
> 
> レプリケーションモードでの対象サーバは3台可能でしょうか。

可能です。
# 私はテストのためによくやっています。

> #createdb test -p 9999
> の結果が2台しか反映されません。
> pgpool.confの記述で注意すべき点等あれば、ご教示願います。

以前なんらかの理由で5433がダウンしたのをpgpoolがpgpool_statusに記憶して
いるということはないですか? pgpool-IIを -D オプション付きで起動して一度
pgpool_statusをクリアしてみてください。
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp

> よろしくお願い致します。
> 
> ■pgpool.conf
> pgpool.confは以下の様に記述しました。(pgpool.conf.sample-replicationを基に)
> 結果が反映されるのは常に上下に定義した2台のみです。
> 
> 
> backend_hostname0 = 'localhost'
> backend_port0 = 5432
> backend_weight0 = 1
> backend_data_directory0 = '/www/pgsql/data1'
> 
> backend_hostname1 = 'localhost'
> backend_port1 = 5433
> backend_weight1 = 1
> backend_data_directory1 = '/www/pgsql/data2'
> 
> backend_hostname2 = 'localhost'
> backend_port1 = 5434
> backend_weight1 = 1
> backend_data_directory2 = '/www/pgsql/data3'
> 
> ■createdb実行結果
> [postgres @ infra-fr2 ~]$ createdb -p 9999 test
> [postgres @ infra-fr2 ~]$ for port in 5432 5433 5434
>> do
>> psql -l -p $port
>> done
>         List of databases
>    Name    |  Owner   | Encoding
> -----------+----------+----------
>  postgres  | postgres | UTF8
>  template0 | postgres | UTF8
>  template1 | postgres | UTF8
>  test      | postgres | UTF8
> (4 rows)
> 
>         List of databases
>    Name    |  Owner   | Encoding
> -----------+----------+----------
>  postgres  | postgres | UTF8
>  template0 | postgres | UTF8
>  template1 | postgres | UTF8
> (3 rows)
> 
>         List of databases
>    Name    |  Owner   | Encoding
> -----------+----------+----------
>  postgres  | postgres | UTF8
>  template0 | postgres | UTF8
>  template1 | postgres | UTF8
>  test      | postgres | UTF8
> (4 rows)
> 
> 
> -- 
> 菊池 幸博 <y-kik @ nifty.com>
> 
> _______________________________________________
> pgpool-general-jp mailing list
> pgpool-general-jp @ sraoss.jp
> http://www.sraoss.jp/mailman/listinfo/pgpool-general-jp


pgpool-general-jp メーリングリストの案内