set-group-options v5.6

Sets group options such as enable_raft, enable_proxy_routing, and location.

Synopsis

You can set the following group options with this command:

  • enable_raft
  • enable_proxy_routing
  • location
  • route_writer_max_lag
  • route_reader_max_lag

Both enable_raft and enable_proxy_routing must be true if proxy is attached to the group.

Use pgd show-groups -o json to view option values for each group.

pgd set-group-options [flags]

Options

FlagDescription
--group-namegroup name
--optionoption in name=value format

See global options for global options.

Examples

Setting group options with multiple options

In this example, we use comma separated multiple options. Spaces are not allowed in the option values.

$ pgd set-group-options --group-name bdrgroup --option enable_proxy_routing=true,route_writer_max_lag=1000000
Output
group options updated successfully

Setting group options with multiple option flags

In this example, we use multiple option flags. Spaces are not allowed in the option values.

$ pgd set-group-options --group-name bdrgroup --option enable_proxy_routing=true --option route_writer_max_lag=1000000
Output
group options updated successfully

Setting group options with double quotes

In this example, we use double quotes around options if the option value has spaces or special characters.

$ pgd set-group-options --group-name bdrgroup --option "location = mumbai" --option "route_writer_max_lag = 1000000"
Output
group options updated successfully