set-node-options#

‘route_fence’、‘route_priority’、’route_writes’などのノードオプションを設定します。

概要#

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

  • ‘route_dsn’

  • ‘route_fence’

  • ‘route_priority’

  • ‘route_writes’

’pgd show-nodes -o json’を使用して、各ノードのオプション値を表示します。

pgd set-node-options [flags]

例#

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

$ pgd set-node-options --node-name bdr-a1 --option route_priority=100,route_fence=true
node options updated successfully

Example 2 (multiple --option flags are allowed)

$ pgd set-node-options --node-name bdr-a1 --option route_priority=100 --option route_fence=true
node options updated successfully

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

$ pgd set-node-options --node-name bdr-a1 --option "route_priority = 100" --option "route_fence = true"
node options updated successfully

オプション#

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

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

-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