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

菊池 幸博 y-kik @ nifty.com
2010年 10月 19日 (火) 18:24:48 JST


菊池と申します。

pgpool-II 3.0でレプリケーション対象3台のサーバで運用を考えています。
3台でテストしましたが2台にしか反映されません。

レプリケーションモードでの対象サーバは3台可能でしょうか。

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

よろしくお願い致します。

■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 メーリングリストの案内