set-proxy-options
=================

‘listen_address’、‘listen_port’、’max_client_conn’などのプロキシオプションを設定します。

概要
^^^^

このコマンドで次のプロキシオプションを設定できます。

-  ‘listen_address’

-  ‘listen_port’

-  ‘max_client_conn’

-  ‘max_server_conn’

-  ‘server_conn_keepalive’

-  ‘server_conn_timeout’

-  ‘consensus_grace_period’

これらのオプションを更新した後、プロキシを再起動します。

’pgd show-proxies -o
json’を使用して、各プロキシのオプション値を表示します。

.. code:: sh

   pgd set-proxy-options [flags]

例
^^

.. code:: text


     Example 1 (comma separated multiple options, spaces are not allowed)

     $ pgd set-proxy-options --proxy-name proxy-a1 --option listen_address=0.0.0.0,listen_port=6432
     proxy options updated successfully, please restart proxy service

     Example 2 (multiple --option flags are allowed)

     $ pgd set-proxy-options --proxy-name proxy-a1 --option listen_address=0.0.0.0 --option listen_port=6432
     proxy options updated successfully, please restart proxy service

     Example 3 (use double quote if option value has spaces or special characters)

     $ pgd set-proxy-options --proxy-name proxy-a1 --option "listen_address = 0.0.0.0" --option "listen_port = 6432"
     proxy options updated successfully, please restart proxy service

オプション
^^^^^^^^^^

.. code:: text

     -h, --help                help for set-proxy-options
         --option strings      option in name=value format
         --proxy-name string   proxy name

親コマンドから継承したオプション
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. code:: text

     -f, --config-file string   config file; ignored if
                                --dsn flag is present (default "/etc/edb/pgd-cli/pgd-cli-config.yml")
         --dsn string           database connection string
                                e.g."host=bdr-a1 port=5432 dbname=bdrdb user=postgres "
     -L, --log-level string     logging level: debug, info, warn, error (default "error")
     -o, --output string        output format: json, yaml
