set-node-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 show-nodes -o json
to view option values for each node.
pgd set-node-options [flags]
Options
Flag | Description |
---|---|
--node-name | node name |
--option | option in name=value format |
See global options for global options.
Examples
Setting node options with multiple options
In this example, we use comma separated multiple options. Spaces are not allowed in the option values.
$ pgd set-node-options --node-name bdr-a1 --option route_priority=100,route_fence=true
Output
node options updated successfully
Setting node options with multiple option flags
In this example, we use multiple option flags. Spaces are not allowed in the option values.
$ pgd set-node-options --node-name bdr-a1 --option route_priority=100 --option route_fence=true
Output
node options updated successfully
Setting node options with double quotes
In this example, we use double quotes around options if the option value has spaces or special characters.
$ pgd set-node-options --node-name bdr-a1 --option "route_priority = 100" --option "route_fence = true"
Output
node options updated successfully