diff options
author | Tatsuo Ishii | 2009-12-08 02:13:59 +0000 |
---|---|---|
committer | Tatsuo Ishii | 2009-12-08 02:13:59 +0000 |
commit | d79035b375063777e0bb2591a51fe87622c78e3d (patch) | |
tree | 96eb7940c6155482bc8fd0477cd4a651e77c60a1 | |
parent | b6d2a9d37e6a4ccae31ec3559313e702af6077cb (diff) |
Prepare pgpoolAdmin 2.3V2_3_0
-rw-r--r-- | definePgpoolConfParam.php | 9 | ||||
-rw-r--r-- | lang/en.lang.php | 2 | ||||
-rw-r--r-- | lang/ja.lang.php | 2 | ||||
-rw-r--r-- | templates/footer.tpl | 2 | ||||
-rw-r--r-- | templates/help/en/pgconfig.tpl | 26 | ||||
-rw-r--r-- | templates/help/ja/pgconfig.tpl | 27 | ||||
-rw-r--r-- | templates/pgconfig.tpl | 31 | ||||
-rw-r--r-- | version.php | 2 |
8 files changed, 96 insertions, 5 deletions
diff --git a/definePgpoolConfParam.php b/definePgpoolConfParam.php index bf3a9f0..02f09c8 100644 --- a/definePgpoolConfParam.php +++ b/definePgpoolConfParam.php @@ -133,7 +133,7 @@ $pgpoolConfigParam[$key]['default'] =false; $key = 'reset_query_list'; $pgpoolConfigParam[$key]['type'] ='C'; -$pgpoolConfigParam[$key]['default'] ='ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT'; +$pgpoolConfigParam[$key]['default'] ='ABORT; DISCARD ALL'; $pgpoolConfigParam[$key]['regexp'] = "^[0-9a-zA-Z; ]+$"; $key = 'print_timestamp'; @@ -308,4 +308,11 @@ $pgpoolConfigParam[$key]['default'] ='0'; $pgpoolConfigParam[$key]['min'] = 0; $pgpoolConfigParam[$key]['max'] = 65535; +$key = 'fail_over_on_backend_error'; +$pgpoolConfigParam[$key]['type'] ='B'; +$pgpoolConfigParam[$key]['default'] =true; + +$key = 'log_per_node_statement'; +$pgpoolConfigParam[$key]['type'] ='B'; +$pgpoolConfigParam[$key]['default'] =false; ?> diff --git a/lang/en.lang.php b/lang/en.lang.php index 571bcd8..aea3126 100644 --- a/lang/en.lang.php +++ b/lang/en.lang.php @@ -41,6 +41,7 @@ $message = array( 'descEnable_query_cache' => 'Perform query cache', 'descFailover_command' => 'Command to be executed when detaching a node', 'descFailback_command' => 'Command to be executed when attaching a node', + 'descFail_over_on_backend_error' => 'Fail over when socket communication error to backend occurs', 'descClient_idle_limit_in_recovery' => 'Timeout in seconds while waiting for a query from a client in on line recovery', 'descHealth_check_period' => 'Specifies the interval for next health checking. 0 means no health checking', 'descHealth_check_timeout' => 'Pgpool does "health check" periodically to detect PostgreSQL servers down, network communication problems or as such', @@ -53,6 +54,7 @@ $message = array( 'descLog_hostname' => 'If true, client\'s hostname will be shown in ps status and in a connection log if log_connections is true', 'descLog_statement' => 'If true, print all statements to the log', 'descLogdir' => 'The directory name to store pgpool\'s log files', + 'descLog_per_node_statement' => 'If true, print all statements to the log per DB node', 'descPid_file_name' => 'The pid file name', 'descMaster_slave_mode' => 'Run in master/slave mode', 'descMax_pool' => 'Number of connection pools each pgpool server process are keeping', diff --git a/lang/ja.lang.php b/lang/ja.lang.php index 56ac6b6..a632184 100644 --- a/lang/ja.lang.php +++ b/lang/ja.lang.php @@ -41,6 +41,7 @@ $message = array( 'descEnable_query_cache' => 'クエリキャッシュ機能の有無', 'descFailover_command' => 'ノード切り離し時に起動するコマンド', 'descFailback_command' => 'ノード復帰時に起動するコマンド', + 'descFail_over_on_backend_error' => 'DBノードへのソケット通信エラー時にフェイルオーバ', 'descHealth_check_period' => 'ヘルスチェックを行う間隔(秒)', 'descHealth_check_timeout' => 'ヘルスチェックが長時間待たされるのを防ぐためのタイムアウト値(秒)', 'descHealth_check_user' => 'ヘルスチェックを行うためのPostgreSQLユーザ名', @@ -52,6 +53,7 @@ $message = array( 'descLog_hostname' => 'クライアントのホスト名を"ps"ステータスに出力', 'descLog_statement' => 'SQL文をログ出力', 'descLogdir' => 'pgpoolの各種ログファイルを格納するディレクトリ', + 'descLog_per_node_statement' => 'DBノード毎にSQL文をログ出力', 'descPid_file_name' => 'pidファイルの名前', 'descMaster_slave_mode' => 'マスタ/スレーブモードでpgpoolを運転', 'descMax_pool' => 'pgpoolの各サーバプロセスがキープするPostgreSQLへの最大コネクション数', diff --git a/templates/footer.tpl b/templates/footer.tpl index 24c5de7..62f7d45 100644 --- a/templates/footer.tpl +++ b/templates/footer.tpl @@ -1,4 +1,4 @@ <address> Version {$version|escape}<br /> - Copyright © 2006 - 2009 <a href="http://pgpool.projects.postgresql.org/">pgpool Global Development Group</a>. All rights reserved. + Copyright © 2006 - 2010 <a href="http://pgpool.projects.postgresql.org/">pgpool Global Development Group</a>. All rights reserved. </address> diff --git a/templates/help/en/pgconfig.tpl b/templates/help/en/pgconfig.tpl index 5b3612f..2bfd1c4 100644 --- a/templates/help/en/pgconfig.tpl +++ b/templates/help/en/pgconfig.tpl @@ -210,11 +210,23 @@ number of connection pools each pgpool server process are keeping. pgpool will m <br>print_timestamp</th> <td>If true timestamp is added to each log line. Default value is true.</td> </tr> + <tr> - <th><label>{$message.descLog_statement|escape}</label> <br>log_statement</th> + <th><label>{$message.descLog_statement|escape}</label> + <br>log_statement</th> <td>If true, SQL statement logs. <br>The role of the PostgreSQL log_statement options are similar, there is no option when you debug logging, but the inquiry be useful to examine.</td> </tr> + + <tr> + <th><label>{$message.descLog_per_node_statement|escape}</label> + <br>log_per_node_statement</th> + <td>If true, print all statements to the log. Similar to + log_statement except that prints DB node id and backend + process id info. + </td> + </tr> + <tr> <th><label>{$message.descLog_connections|escape}</label> <br>log_connections</th> @@ -252,11 +264,23 @@ number of connection pools each pgpool server process are keeping. pgpool will m <br>replication_timeout (integer)</th> <td>pgpool will abort the session if a node does not respond (due to a inter-node deadlock) within this milli seconds. if set to 0, timeout is disabled.</td> </tr> + <tr> <th><label>{$message.descReplication_stop_on_mismatch|escape}</label> <br>replication_stop_on_mismatch</th> <td>Stop replication mode on data mismatch between master and secondary. Default is false.</td> </tr> + + <tr> + <th><label>{$message.descFail_over_on_backend_error|escape}</label> + <br>fail_over_on_backend_error</th> <td>If true, trigger + fail over when writing to the backend communication socket + fails. This is the same behavior of pgpool-II 2.2.x or + earlier. If set to false, pgpool will report an error and + disconnect the session. + </td> + </tr> + <tr> <th><label>{$message.descReplicate_select|escape}</label> <br>replicate_select</th> diff --git a/templates/help/ja/pgconfig.tpl b/templates/help/ja/pgconfig.tpl index 26681e8..7dd72aa 100644 --- a/templates/help/ja/pgconfig.tpl +++ b/templates/help/ja/pgconfig.tpl @@ -277,6 +277,7 @@ <td>true ならば pgpool のログにタイムスタンプを追加します。 <br>デフォルトは true です。</td> </tr> + <tr> <th><label>{$message.descLog_statement|escape}</label> <br>log_statement</th> @@ -286,6 +287,15 @@ <br>デフォルト値は false です。 </td> </tr> + + <tr> + <th><label>{$message.descLog_per_node_statement|escape}</label> + <br>log_per_node_statement</th> + <td> log_statementと似ていますが、DBノード単位でログが出力されるので、レプリケーションや負荷分散の確認が容易です。 + <br>デフォルト値は false です。 + </td> + </tr> + <tr> <th><label>{$message.descLog_connections|escape}</label> <br>log_connections</th> @@ -333,12 +343,27 @@ <td>デットロックを監視するためのタイムアウト時間をミリ秒単位で指定します。 <br>デフォルト値は 5000 (5秒)です。</td> </tr> + <tr> <th><label>{$message.descReplication_stop_on_mismatch|escape}</label> + <br>replication_stop_on_mismatch</th> <td>true の場合、マスタとセカンダリの間で、データの不一致があった場合に強制的に縮退運転に入ります。 false の場合には、該当の問い合わせを強制的に終了するだけに留めます。 <br>デフォルト値は false です。</td> </tr> + + <tr> + <th><label>{$message.descFail_over_on_backend_error|escape}</label> + <br>fail_over_on_backend_error</th> + <td>trueならば、バックエンドのソケットへの書き込みに失敗するとフェイルオーバします。 + これはpgpool-II 2.2.xまでの挙動と同じです。 +falseにすると、フェイルオーバせず、単にエラーがレポートされてセッションが切断されます。 +このパラメータをfalseにする場合には、health checkを有効にすることをお勧めします。 +なお、このパラメータがfalseの場合でも、クライアントがpgpoolに接続する際にバックエンドへの接続に失敗した場合、あるいはバックエンドがシャットダウンされたことをpgpool-IIが検知した場合にはフェイルオーバが起きることに注意してください。 +このパラメータを変更した時には設定ファイルを再読み込みしてください。 + <br>デフォルト値は true です。</td> + </tr> + <tr> <th><label>{$message.descReplicate_select|escape}</label> <br>replicate_select</th> @@ -350,7 +375,7 @@ <br>reset_query_list (string)</th> <td>セッションが終了するときにコネクションを初期化するための SQL コマンドを「;」で区切って列挙します。 <br>デフォルト値は以下のようになっていますが、任意の SQL文を追加しても構いません。 - <p>reset_query_list = 'ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT'</p> + <p>reset_query_list = 'ABORT; DISCARD ALL'</p> PostgreSQL のバージョンによって使用できる SQLコマンドが違うので、 PostgreSQL 7.3 以前では注意してください(「4. pgpoolの稼働環境」参照)。 <br>なお、「ABORT」は、PostgreSQL 7.4以上ではトランザクションブロックの中にいない場合には発行されません。 diff --git a/templates/pgconfig.tpl b/templates/pgconfig.tpl index c0e3fb1..9344f0b 100644 --- a/templates/pgconfig.tpl +++ b/templates/pgconfig.tpl @@ -393,6 +393,7 @@ function cancelNode() { <td><input type="checkbox" name="print_timestamp" id="print_timestamp" value="false" /></td> {/if} </tr> + <tr> {if $error.log_statement != null} <th class="error"><label>{$message.descLog_statement|escape}</label> <br />log_statement</th> @@ -406,6 +407,21 @@ function cancelNode() { <td><input type="checkbox" name="log_statement" id="log_statement" value="false" /></td> {/if} </tr> + + <tr> {if $error.log_per_node_statement != null} + <th class="error"><label>{$message.descLog_per_node_statement|escape}</label> + <br />log_per_node_statement</th> + {else} + <th><label>{$message.descLog_per_node_statement|escape}</label> + <br />log_per_node_statement</th> + {/if} + {if $params.log_per_node_statement == 'true'} + <td><input type="checkbox" name="log_per_node_statement" id="log_per_node_statement" value="true" checked="checked" /></td> + {else} + <td><input type="checkbox" name="log_per_node_statement" id="log_per_node_statement" value="false" /></td> + {/if} + </tr> + <tr> {if $error.log_connections != null} <th class="error"><label>{$message.descLog_connections|escape}</label> <br />log_connections</th> @@ -469,6 +485,7 @@ function cancelNode() { {/if} <td><input type="text" name="replication_timeout" value="{$params.replication_timeout|escape}"/></td> </tr> + <tr> {if $error.replication_stop_on_mismatch != null} <th class="error"><label>{$message.descReplication_stop_on_mismatch|escape}</label> <br />replication_stop_on_mismatch</th> @@ -481,6 +498,20 @@ function cancelNode() { {else} <td><input type="checkbox" name="replication_stop_on_mismatch" id="replication_stop_on_mismatch" value="false" /></td> {/if} </tr> + + <tr> {if $error.fail_over_on_backend_error != null} + <th class="error"><label>{$message.descFail_over_on_backend_error|escape}</label> + <br />fail_over_on_backend_error</th> + {else} + <th><label>{$message.descFail_over_on_backend_error|escape}</label> + <br />fail_over_on_backend_error</th> + {/if} + {if $params.fail_over_on_backend_error == 'true'} + <td><input type="checkbox" name="fail_over_on_backend_error" id="fail_over_on_backend_error" value="true" checked="checked" /></td> + {else} + <td><input type="checkbox" name="fail_over_on_backend_error" id="fail_over_on_backend_error" value="false" /></td> + {/if} </tr> + <tr> {if $error.replicate_select != null} <th class="error"><label>{$message.descReplicate_select|escape}</label> <br />replicate_select</th> diff --git a/version.php b/version.php index b2f06f9..6083f74 100644 --- a/version.php +++ b/version.php @@ -23,6 +23,6 @@ * @version SVN: $Id$
*/
-$version = '2.2';
+$version = '2.3';
?>
|