From 8e18a0b89fb9a3ff4c63d76814b63c18bfdb313b Mon Sep 17 00:00:00 2001 From: Nozomi Anzai Date: Mon, 23 Jul 2012 15:43:11 +0900 Subject: [PATCH] Add parameters of watchdog. --- templates/help/en/pgconfig.tpl | 198 ++++++++++++++++++++++++++++++++- templates/help/ja/pgconfig.tpl | 189 ++++++++++++++++++++++++++++++- 2 files changed, 383 insertions(+), 4 deletions(-) diff --git a/templates/help/en/pgconfig.tpl b/templates/help/en/pgconfig.tpl index 84fe310..bd9c996 100644 --- a/templates/help/en/pgconfig.tpl +++ b/templates/help/en/pgconfig.tpl @@ -33,7 +33,12 @@
  • Health Check
  • Failover and Failback
  • Online Recovery
  • + {if paramExists('use_watchdog')} +
  • Watchdog
  • + {/if} + {if hasMemqcache()}
  • On Memory Query Cache
  • + {/if}
  • Others
  • @@ -1576,6 +1581,195 @@ black_function_list = 'nextval,setval,lastval,currval' + +{if paramExists('use_watchdog')} +

    Watchdog

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {$message.strParameter|escape}{$message.strDetail|escape}
    +

    use_watchdog (bool)

    +

    If on, activates watchdog. Default is off.

    +
    Connection to up stream servers
    +

    trusted_servers (string)

    +

    + The list of trusted servers to check the up stream connections. + Each server is required to respond to ping. + Specify a comma separated list of servers such as "hostA,hostB,hostC". +

    +
    +

    ping_path (string)

    +

    This parameter specifies a path of ping command for monitoring connection to the upper servers. + Set the only path such as "/bin".

    +
    Lifecheck of pgpol-II
    +

    wd_interval (integer)

    +

    This parameter specifies the interval between life checks of pgpool-II in second. + (A number greater than or equal to 1)

    +
    +

    wd_life_point (string)

    +

    The times to retry a failed life check of pgpool-II. (A number greater than or equal to 1)

    +
    +

    wd_lifecheck_query (string)

    +

    Actual query to check pgpool-II. Default is "SELECT 1".

    +
    Virtual IP address
    +

    delegate_IP (string)

    +

    Specifies the virtual IP address (VIP) of pgpool-II that is connected from client servers + (application servers etc.). + When a pgpool is switched from standby to active, the pgpool takes over this VIP.

    +
    +

    ifconfig_path (string)

    +

    This parameter specifies a path of a command to switch the IP address. + Set the only path such as "/sbin".

    +
    +

    if_up_cmd (string)

    +

    This parameter specifies a command to bring up the virtual IP. + Set the command and parameters such as "ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0". + $_IP_$ is replaced by the IP address specified in delegate_IP.

    +
    +

    if_down_cmd (string)

    +

    This parameter specifies a command to bring down the virtual IP. + Set the command and parameters such as "ifconfig eth0:0 down".

    +
    +

    arping_path (string)

    +

    This parameter specifies a path of a command to send an ARP request after the virtual IP is switched. + Set the only path such as "/usr/sbin".

    +
    +

    arping_cmd (string)

    +

    This parameter specifies a command to send an ARP request after the virtual IP is switched. + Set the command and parameters such as "arping -U $_IP_$ -w 1". + $_IP_$ is replaced by the IP address specified in delegate_IP.

    +
    Server itself to be monitored
    +

    wd_hostname (string)

    +

    Specifies the hostname or IP address for mutual monitoring of watchdog processes.

    +
    +

    wd_port (integer)

    +

    Specifies the port number for mutual monitoring of watchdog processes.

    +
    Servers to monitor
    +

    other_pgpool_hostname (string)

    +

    Specifies the hostname pgpool-II server to be monitored. + The number at the end of the parameter name is referred as "server id", and it starts from 0.

    +
    +

    other_pgpool_port (integer)

    +

    Specifies the port number for pgpool on pgpool-II server to be monitored. + The number at the end of the parameter name is referred as "server id", and it starts from 0. +

    +
    +

    other_wd_port (integer)

    +

    Specifies the port number for watchdog on pgpool-II server to be monitored. + The number at the end of the parameter name is referred as "server id", and it starts from 0. +

    +
    +{/if} + + {if hasMemqcache()}

    On Memory Query Cache

    @@ -1749,7 +1943,7 @@ black_function_list = 'nextval,setval,lastval,currval'

    Specify a comma separated list of table names whose SELECT results are to be cached even if - they are VIEWs or unlogged tables. You can use regular expression. + they are VIEWs or unlogged tables. You can use regular expression (to which added automatically ^ and $).

    TABLEs and VIEWs in both of white_memqcache_table_list and @@ -1764,7 +1958,7 @@ black_function_list = 'nextval,setval,lastval,currval'

    Specify a comma separated list of table names whose SELECT results are NOT to be cached. - You can use regular expression. + You can use regular expression (to which added automatically ^ and $).

    diff --git a/templates/help/ja/pgconfig.tpl b/templates/help/ja/pgconfig.tpl index 4b7c38a..fb83fc8 100644 --- a/templates/help/ja/pgconfig.tpl +++ b/templates/help/ja/pgconfig.tpl @@ -33,7 +33,12 @@
  • Health Check
  • Failover and Failback
  • Online Recovery
  • + {if paramExists('use_watchdog')} +
  • Watchdog
  • + {/if} + {if hasMemqcache()}
  • On Memory Query Cache
  • + {/if}
  • Others
  • @@ -1654,6 +1659,184 @@ black_function_list = 'nextval,setval,lastval,currval' +{if paramExists('use_watchdog')} +

    Watchdog

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {$message.strParameter|escape}{$message.strDetail|escape}
    +

    use_watchdog (bool)

    +

    watchdog を有効にするには on にします。デフォルトは off です。

    +
    Connection to up stream servers
    +

    trusted_servers (string)

    +

    上位接続を確認するための信頼できるサーバリストです。 ping の応答が得られる必要があります。 + "hostA,hostB,hostC ..." のようにカンマで区切って複数のサーバを指定できます。

    +

    指定がない場合は上位サーバへのネットワーク到達監視をしません。

    +
    +

    ping_path (string)

    +

    上位サーバへの接続監視に利用する ping コマンドのパスです。 "/bin" のようにパスだけを指定します。

    +
    Lifecheck of pgpol-II
    +

    wd_interval (integer)

    +

    pgpool-II への生存監視の間隔(秒)です。 (1 以上の数値)

    +
    +

    wd_life_point (string)

    +

    pgpool-II の死活監視で応答が得られなかった場合のリトライ回数です。 (1 以上の数値)

    +
    +

    wd_lifecheck_query (string)

    +

    pgpool-II の死活監視のために発行されるクエリです。 デフォルトは "SELECT 1" です。

    +
    Virtual IP address
    +

    delegate_IP (string)

    +

    (アプリケーションサーバなど)外部からの接続される pgpool-II の仮想 IP アドレスです。 + スタンバイからアクティブに切り替わる際、pgpool はこの仮想 IP を引き継ぎます。

    +
    +

    ifconfig_path (string)

    +

    IP アドレス切り替えに利用するコマンドのパスです。 "/sbin" のようにパスだけを指定します。

    +
    +

    if_up_cmd (string)

    +

    仮想 IP を起動するために実行するコマンドです。 + "ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0" のようにコマンドとパラメータを指定します。 + $_IP_$ は delegate_IP で指定された IP アドレスに置換されます。

    +
    +

    if_down_cmd (string)

    +

    仮想IPを停止するために実行するコマンドです。 + "ifconfig eth0:0 down" のようにコマンドとパラメータを指定します。

    +
    +

    arping_path (string)

    +

    IP アドレス切り替え後に ARP リクエストを送信するコマンドのパスです。 + "/usr/sbin" のようにパスだけを指定します。

    +
    +

    arping_cmd (string)

    +

    IPアドレス切り替え後にARPリクエストを送信するコマンドです。 + "arping -U $_IP_$ -w 1" のようにコマンドとパラメータを指定します。 + $_IP_$ は delegate_IP で指定された IP アドレスに置換されます。

    +
    Server itself to be monitored
    +

    wd_hostname (string)

    +

    watchdog プロセスが相互監視を受信する為のホスト名または IP アドレスです。

    +
    +

    wd_port (integer)

    +

    watchdog プロセスが相互監視を受信する為のポート番号です。

    +
    Servers to monitor
    +

    other_pgpool_hostname (string)

    +

    監視対象のpgpool-IIサーバのホスト名を指定します。 数値の部分は監視対象サーバの番号です。 + 監視対象のサーバ毎に 0 からの連番にします。

    +
    +

    other_pgpool_port (integer)

    +

    監視対象のpgpool-IIサーバのpgpool用のポート番号を指定します。 数値の部分は監視対象サーバの番号です。 + 監視対象のサーバ毎に 0 からの連番にします。

    +
    +

    other_wd_port (integer)

    +

    監視対象のpgpool-IIサーバのwatchdog用のポート番号を指定します 数値の部分は監視対象サーバの番号です。 + 監視対象のサーバ毎に 0 からの連番にします。

    +
    +{/if} {if hasMemqcache()}

    On Memory Query Cache

    @@ -1834,7 +2017,8 @@ black_function_list = 'nextval,setval,lastval,currval'

    VIEW やunloggedテーブルを使っているSELECTは通常キャッシュの対象になりませんが、 white_memqcache_table_list に記述しておくことで、キャッシュされるようになります。 - テーブル名はカンマ区切りで指定します。正規表現も利用できます。 + テーブル名はカンマ区切りで指定します。 + 正規表現も利用できます(指定した各表現に ^ と $ をつけた形で使われます)。

    なお、同じテーブル・VIEW が black_memqcache_table_list と両方に 指定されている場合は、white_memqcache_table_list が優先され、キャッシュを利用します。 @@ -1847,7 +2031,8 @@ black_function_list = 'nextval,setval,lastval,currval'

    black_memqcache_table_list(string)

    - SELECT 結果をキャッシュしたくないテーブル名をカンマ区切りで指定します。正規表現も利用できます。 + SELECT 結果をキャッシュしたくないテーブル名をカンマ区切りで指定します。 + 正規表現も利用できます(指定した各表現に ^ と $ をつけた形で使われます)。

    -- 2.39.5