node set options v5.6

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
  • route_reads

Use pgd node list -o json to view option values for each node.

pgd node set options [flags]

Options

FlagFlag, long          ValueDescription
--node-namenodenamenode name
--optionoptionoption in name=value format

Examples

Comma-separated options

When setting options with comma separated multiple options, spaces in keys and values aren't allowed.

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

Multiple --option flags

You can use multiple --option flags to set multiple options.

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

Quoting option values

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