[pgsql-jp: 37408] pgpool 縮退多発
Ito Shinichi
shinichi @ enkai.gr.jp
2006年 8月 10日 (木) 18:45:44 JST
いとうです。
1台のサーバ上で pgpool + PostgreSQL を
レプリケーションモードで動作させています。
クライアントからは特にDBを操作していないにも関わらず
pgpoolが縮退運転に入る、という現象が多発しています。
縮退するたびにデータベースの状態を一致させているのですが、
多いときは1日に3回縮退しています。
また、縮退時に障害が発生している(show pool_statusでdownとなる)のは
かならず master で、secondary に障害が発生したことはありません。
原因/対策等アドバイスをお願いいたします。
動作環境およびpgpool.conf の内容は以下の通りです。
- 動作環境
OS: Red Hat Enterprise Linux ES release 3
PostgreSQL: 8.1.0 (postgresql.org )
pgpool: 3.1.0 (自家製RPM)
- pgpool.conf
listen_addresses = 'localhost'
port = 9999
socket_dir = '/tmp'
backend_host_name = ''
backend_port = 5431
backend_socket_dir = '/tmp'
secondary_backend_host_name = ''
secondary_backend_port = 5433
num_init_children = 32
max_pool = 4
child_life_time = 300
connection_life_time = 0
logdir = '/var/run'
replication_mode = true
replication_strict = true
replication_timeout = 5000
load_balance_mode = true
weight_master = 0.5
weight_secondary = 0.5
replication_stop_on_mismatch = true
reset_query_list = 'ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT'
print_timestamp = true
master_slave_mode = false
connection_cache = true
health_check_timeout = 10
health_check_period = 10
health_check_user = 'pgweb'
insert_lock = true
ignore_leading_white_space = true
----
伊藤 真一
shinichi @ enkai.gr.jp
pgsql-jp メーリングリストの案内