pgd node get-option v5.7.0
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.
Synopsis
The pgd node get-option
command is used to get node-level options in the EDB Postgres Distributed cluster.
Syntax
pgd node <NODE_NAME> get-option [OPTIONS] [OPTION]
Where <NODE_NAME>
is the name of the node for which you want to get options.
And [OPTION]
is the name of a specific group option you want to get. If no option is specified, all options are displayed.
The following options are available:
Node Options
Option | Description |
---|---|
route_priority | Priority assigned to the node. |
route_fence | Set to fence the node |
route_writes | Set to allow node to route writes. |
route_reads | Set to allow node to route reads. |
route_dsn | DSN for connections to this node |
Options
No command specific options. See Global Options.
Examples
Get all node options
pgd node kaboom get-option
Output
Option Name Option Value -------------- ------------------------------------------------- route_dsn host=kaboom port=5444 dbname=bdrdb user=pgdproxy route_fence false route_priority 100 route_reads true route_writes true
Get a specific node option
pgd node kaboom get-option route_priority
Output
Option Name Option Value -------------- ------------ route_priority 100
Get all node options as json
pgd node kaboom get-option -o json
Output
[ { "option_name": "route_dsn", "option_value": "host=kaboom port=5444 dbname=bdrdb user=pgdproxy " }, { "option_name": "route_fence", "option_value": "false" }, { "option_name": "route_priority", "option_value": "100" }, { "option_name": "route_reads", "option_value": "true" }, { "option_name": "route_writes", "option_value": "true" } ]