すべての子プロセスと、それに関するコネクションスロットを表示します。
Pgpool-II 子プロセスの PID を指定します。
pcp_common_options を参照してください。
もし-aオプションも-Pオプションも指定されない場合は、すべての接続されたPgpool-II子プロセスが表示されます。 この場合、接続された子プロセスが存在しない場合は、"No process information available"メッセージだけが表示されます。
例を示します。
$ pcp_proc_info -p 1100 test postgres 2021-09-28 04:16:00 (4:56 before process restarting) 1 3 0 2021-09-28 04:16:16 2021-09-28 04:16:16 0 2021-09-28 04:16:33 1 30795 0 30750 0 Wait for connection test postgres 2021-09-28 04:16:00 (4:56 before process restarting) 1 3 0 2021-09-28 04:16:16 2021-09-28 04:16:16 0 2021-09-28 04:16:33 1 30796 0 30750 1 Wait for connection test kawamoto 2021-09-28 04:16:00 0 3 0 2021-09-28 04:16:03 2021-09-28 04:16:03 34 (4:26 before client disconnected) 1 30763 1 30751 0 Idle test kawamoto 2021-09-28 04:16:00 0 3 0 2021-09-28 04:16:03 2021-09-28 04:16:03 34 (4:26 before client disconnected) 1 30764 1 30751 1 Idle $ pcp_proc_info -p 11001 30751 test kawamoto 2021-09-28 04:16:00 0 3 0 2021-09-28 04:16:03 2021-09-28 04:16:03 58 (4:02 before client disconnected) 1 30763 1 30751 0 Idle test kawamoto 2021-09-28 04:16:00 0 3 0 2021-09-28 04:16:03 2021-09-28 04:16:03 58 (4:02 before client disconnected) 1 30764 1 30751 1 Idle
結果は以下の順のとおりです。
1. 接続先のデータベース名
2. 接続先のユーザ名
3. Pgpool-IIプロセスの起動時刻 (child_life_timeが0でない場合、プロセスが再起動されるまでの時間を表示します)
4. プロセスの利用カウンタ(child_max_connectionsを参照)
5. プロトコルのメジャーバージョン
6. プロトコルのマイナーバージョン
7. バックエンドへの接続時刻
8. クライアントが最後に接続開始した時刻
9. 接続がidleとなっている時間(秒)(client_idle_limitが0でない場合、クライアントが切断されるまでの時間を表示します)
10. クライアントが最後に接続終了した時刻
11. 接続の再利用カウンタ値
12. PostgreSQLバックエンドプロセスのプロセスID
13. フロントエンドが接続中なら1、そうでなければ0
14. pgpool子プロセスID
15. PostgreSQLバックエンドID
16. プロセスの状態
-a もしくは --allオプションが指定されておらずコネクションがバックエンドに対して張られていない場合、データは表示されません。 コネクション情報が複数ある場合、複数行に 1 行 1 コネクション情報で表示されます。
--verbose オプションは出力内容を理解するのに役に立ちます。例:
$ pcp_proc_info -p 11001 --verbose Database : test Username : postgres Start time : 2021-09-28 04:16:00 (2:52 before process restarting) Client connection count : 1 Major : 3 Minor : 0 Backend connection time : 2021-09-28 04:16:16 Client connection time : 2021-09-28 04:16:16 Client idle duration : 0 Client disconnection time : 2021-09-28 04:16:33 Pool Counter : 1 Backend PID : 30795 Connected : 0 PID : 30750 Backend ID : 0 Status : Wait for connection Database : test Username : postgres Start time : 2021-09-28 04:16:00 (2:52 before process restarting) Client connection count : 1 Major : 3 Minor : 0 Backend connection time : 2021-09-28 04:16:16 Client connection time : 2021-09-28 04:16:16 Client idle duration : 0 Client disconnection time : 2021-09-28 04:16:33 Pool Counter : 1 Backend PID : 30796 Connected : 0 PID : 30750 Backend ID : 1 Status : Wait for connection Database : test Username : kawamoto Start time : 2021-09-28 04:16:00 Client connection count : 0 Major : 3 Minor : 0 Backend connection time : 2021-09-28 04:16:03 Client connection time : 2021-09-28 04:16:03 Client idle duration : 158 (2:22 before client disconnected) Client disconnection time : Pool Counter : 1 Backend PID : 30763 Connected : 1 PID : 30751 Backend ID : 0 Status : Idle Database : test Username : kawamoto Start time : 2021-09-28 04:16:00 Client connection count : 0 Major : 3 Minor : 0 Backend connection time : 2021-09-28 04:16:03 Client connection time : 2021-09-28 04:16:03 Client idle duration : 158 (2:22 before client disconnected) Client disconnection time : Pool Counter : 1 Backend PID : 30764 Connected : 1 PID : 30751 Backend ID : 1 Status : Idle