set-group-options#
‘enable_raft’、‘enable_proxy_routing’、’location’などのグループオプションを設定します。
概要#
このコマンドで次のグループオプションを設定できます。
‘enable_raft’
‘enable_proxy_routing’
‘location’
‘route_writer_max_lag’
プロキシがグループに接続されている場合、 ’enable_raft’と’enable_proxy_routing’の両方がtrueである必要があります。
’pgd show-groups -o json’を使用して、各グループのオプション値を表示します。
pgd set-group-options [flags]
例#
Example 1 (comma separated multiple options, spaces are not allowed)
$ pgd set-group-options --group-name bdrgroup --option enable_proxy_routing=true,route_writer_max_lag=1000000
group options updated successfully
Example 2 (multiple --option flags are allowed)
$ pgd set-group-options --group-name bdrgroup --option enable_proxy_routing=true --option route_writer_max_lag=1000000
group options updated successfully
Example 3 (use double quote if option value has spaces or special characters)
$ pgd set-group-options --group-name bdrgroup --option "location = mumbai" --option "route_writer_max_lag = 1000000"
group options updated successfully
オプション#
--group-name string group name
-h, --help help for set-group-options
--option strings option in name=value format
親コマンドから継承したオプション#
-f, --config-file string config file; ignored if
--dsn flag is present (default "/etc/edb/pgd-cli/pgd-cli-config.yml")
--dsn string database connection string
e.g."host=bdr-a1 port=5432 dbname=bdrdb user=postgres "
-L, --log-level string logging level: debug, info, warn, error (default "error")
-o, --output string output format: json, yaml