[pgsql-jp: 34351] Re: pgpool 2.3.1 で縮退運転に失敗します

Tatsuo Ishii t-ishii @ sra.co.jp
2004年 11月 29日 (月) 19:59:17 JST


石井です.

> > よろしければ,対策パッチを
> >
> > http://www2b.biglobe.ne.jp/~caco/pgpool/pool.patch
> >
> > に置きましたので,試してみて頂けますか?
> 
> 素早い対応ありがとうございます。
> さっそくパッチを当てて試してみましたが、やはり上手くいきません。
> 
> 縮退運転のテストは、前回投稿したのと同じ設定を使い下記の手順で行いました。
> pgpool とMaster, Secondary のpostmaster は起動してあります。
> 
> ●Master 側停止
> 
> 1.pgpool 経由でデータベースにアクセスする
> psql -p 9999
> 
> 2.Kill -QUIT でMaster 側のpostmaster を停止
> 
> 3.データベースへアクセスするが、反応が返ってこない
> ---
> postgres=# select * from test_table;
> 
> (このコマンドを実行して30分間待ったが応答なし)
> 
> 
> ●Secondary 側停止
> 
> 1.pgpool 経由でデータベースにアクセスする
> psql -p 9999
> 
> 2.Kill -QUIT でSecondary 側のpostmaster を停止
> 
> 3.データベースへアクセスする
> ・1回目:失敗
> ---
> postgres=# select * from test_table;
> ERROR:  kind mismatch between backends
> HINT:  check data consistency between master and secondary
> server closed the connection unexpectedly
>         This probably means the server terminated abnormally
>         before or while processing the request.
> The connection to the server was lost. Attempting reset: Failed.
> !>
> ---
> (pgpool のプロセス数が設定した起動数に関わらず2つに減ります)
> 
> ・2回目:失敗
> ---
> ishikawa$ psql -p 9999
> psql: server closed the connection unexpectedly
>         This probably means the server terminated abnormally
>         before or while processing the request.
> ---
> (pgpool のプロセス数が0になります)
> 
> ・3回目以降:失敗
> ---
> ishikawa$ psql -p 9999
> psql: could not connect to server: 接続が拒否されました。
>         Is the server running locally and accepting
>         connections on Unix domain socket "/tmp/.s.PGSQL.9999"?
> ---
> 
> テストの方法にどこか問題はありますか?

1) PostgreSQLのバージョンはいくつですか?

2) -n -d オプションを付けて詳しいデバッグログを見せてください.

3) pgpool.confの内容を見せてください.
--
Tatsuo Ishii



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