set-proxy-options v5

Sets proxy options such as 'listen_address', 'listen_port', and 'max_client_conn'.

Synopsis

You can set the following proxy options with this command:

  • 'listen_address'
  • 'listen_port'
  • 'max_client_conn'
  • 'max_server_conn'
  • 'server_conn_keepalive'
  • 'server_conn_timeout'

After updating any of these options, restart proxy.

Use 'pgd show-proxies -o json' to view option values for each proxy.

pgd set-proxy-options [flags]

Examples

  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

Options

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

Options inherited from parent commands

  -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