set-node-options v5

Sets node options such as 'route_fence', 'route_priority', and 'route_writes'.

Synopsis

You can set the following node options with this command:

  • 'route_dsn'
  • 'route_fence'
  • 'route_priority'
  • 'route_writes'

Use 'pgd show-nodes -o json' to view option values for each node.

pgd set-node-options [flags]

Examples

  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

Options

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

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