pgd group set-option v6.5.0

Synopsis

The pgd group set-option command is used to set group-level options in the EDB Postgres Distributed cluster.

Users and roles

Requires the bdr_superuser role. See User roles.

Syntax

pgd group <GROUP_NAME> set-option [OPTIONS] <OPTION> <VALUE>

Where <GROUP_NAME> is the name of the group for which you want to get options.

And <OPTION> is the name of a specific group option you want to get and <VALUE> is the value you want it set to. The following options are available:

Group options

OptionDescription
apply_delayThe delay in applying changes to the group.
check_constraintsWhether to check constraints in the group.
default_commit_scopeThe default commit scope of the group.
enable_routingWhether to enable routing in the group.
enable_raftWhether to enable Raft in the group.
enable_wal_decoderWhether to enable the WAL decoder in the group.
locationThe location of the group.
num_writersThe number of writers in the group.
route_reader_max_lagThe maximum lag for the reader in the group.
route_writer_max_lagThe maximum lag for the writer in the group.
streaming_modeThe streaming mode of the group.
route_writer_wait_flushThe wait time for flushing the writer in the group.
default_seqkindThe default sequence kind of the group.
default_replica_identityThe default replica identity of the group.
conflict_detection_methodThe conflict detection method of the group.
replay_progress_frequencyThe replay progress frequency of the group.
batch_insertsWhether to enable batch inserts in the group.
analytics_storage_locationThe storage location for analytics in the group.
analytics_write_catalogThe catalog service used for analytics in the group.
analytics_storage_formatThe storage format used for analytics data (for example, iceberg). Requires Raft protocol version 6000 and group Raft and routing enabled.
analytics_autoadd_tablesWhether to automatically add tables to analytics in the group.
failover_slot_scopeThe scope of failover replication slots. Valid values are local, subgroup, and global. Requires Raft protocol version 5007.
enable_fast_track_writerWhether to enable the fast-track writer feature. Requires Raft protocol version 6005 or later.
leader_progress_tracking_enableWhether to enable write leader progress tracking.
leader_progress_tracking_periodThe period for write leader progress tracking.
apply_error_policyThe policy PGD uses when it encounters an apply error. Valid values are default/keep_retrying, disable_after_retries, record_all_and_disable, and record_all_and_skip. Requires Raft protocol version 6005 or later.
apply_error_max_retriesMaximum number of retries before apply_error_policy takes effect. -1 means unlimited. Requires Raft protocol version 6005 or later.
apply_error_max_skipsMaximum number of skips allowed under apply_error_policy. -1 means unlimited. Requires Raft protocol version 6005 or later.
apply_error_max_record_sizeMaximum record size for recorded apply errors. -1 means unlimited. Requires Raft protocol version 6005 or later.
evict_node_actionThe action to take when a node exceeds evict_node_lag_bytes. none (the default) takes no action. part parts the node.
evict_node_lag_bytesThe maximum replication lag, in bytes, a node can accumulate before evict_node_action runs.
Note

From PGD 6.5, setting analytics_storage_location or analytics_write_catalog validates that the target is a reachable read/write path, and rejects the configuration otherwise. See Setting up PGAA for configuration steps.

Group Connection Manager options

OptionDescription
read_write_portwhich port to listen on for read-write connections
read_only_portwhich port to listen on for read-only connections
http_portwhich http port to listen for REST API calls (for integration purposes)
use_httpswhether http listener should use HTTPS, if enabled, the server certificate is used to TLS
server_pool_modeconnection pooling mode: none (no pooling), session, or transaction
server_pool_timeouthow long to wait for an available pooled server connection before giving up, when server_pool_mode is session or transaction, defaults to 10 seconds
read_write_max_client_connectionsmaximum read-write client connections allowed, defaults to max_connections
read_write_max_server_connectionsmaximum read-write connections that will be opened to server
read_only_max_client_connectionsmaximum read-only client connections allowed
read_only_max_server_connectionsmaximum read-only connections that will be opened to server
read_write_consensus_timeouthow long to wait on loss of consensus before read-write connections are no longer accepted
read_only_consensus_timeouthow long to wait on loss of consensus before read-only connections are no longer accepted.

Group Proxy options (for PGD 5.x only)

OptionDescription
proxy_listen_addressThe listen address for the proxy in the group.
proxy_listen_addressesThe listen addresses for the proxy in the group.
proxy_listen_portThe listen port for the proxy in the group.
proxy_max_client_connThe maximum number of client connections for the proxy in the group.
proxy_max_server_connThe maximum number of server connections for the proxy in the group.
proxy_server_conn_timeoutThe server connection timeout for the proxy in the group.
proxy_server_conn_keepaliveThe server connection keepalive for the proxy in the group.
proxy_fallback_node_groupsThe fallback node groups for the proxy in the group.
proxy_fallback_node_group_timeoutThe fallback node group timeout for the proxy in the group.
proxy_consensus_grace_periodThe consensus grace period for the proxy in the group.
proxy_read_listen_addressThe listen address for the read proxy in the group.
proxy_read_listen_addressesThe listen addresses for the read proxy in the group.
proxy_read_listen_portThe listen port for the read proxy in the group.
proxy_read_max_client_connThe maximum number of client connections for the read proxy in the group.
proxy_read_max_server_connThe maximum number of server connections for the read proxy in the group.
proxy_read_server_conn_keepaliveThe server connection keepalive for the read proxy in the group.
proxy_read_server_conn_timeoutThe server connection timeout for the read proxy in the group.
proxy_read_consensus_grace_periodThe consensus grace period for the read proxy in the group.

Options

No command specific options. See Global Options.

Examples

Set the location of a group

pgd group dc1_subgroup set-option location London
Output
Command executed successfully

Setting an option to a value with a space in it

pgd group dc1_subgroup set-option location "New York"
Output
Command executed successfully