set-node-options v5.6
Warning: You are not reading the most recent version of this documentation.
Documentation improvements are made only to the latest version.
As per semantic versioning, PGD minor releases remain backward compatible and may include important bug fixes and enhancements.
We recommend upgrading the latest minor release as soon as possible.
If you want up-to-date information, read the latest PGD documentation.
Documentation improvements are made only to the latest version.
As per semantic versioning, PGD minor releases remain backward compatible and may include important bug fixes and enhancements.
We recommend upgrading the latest minor release as soon as possible.
If you want up-to-date information, read the latest PGD documentation.
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