Updating configurations via CMS

Get the current settings

The following command will let you get the current settings for a cluster or tenant.

  1. ./kikimr -s <endpoint> admin console configs load --out-dir <config-folder>

Updating configurations via CMS - 图1

  1. ./kikimr -s <endpoint> admin console configs load --out-dir <config-folder> --tenant <tenant-name>

Updating configurations via CMS - 图2

Update the settings

First, you need to pull the desired config as indicated above and then prepare a protobuf file with an update request.

  1. Actions {
  2. AddConfigItem {
  3. ConfigItem {
  4. Cookie: "<cookie>"
  5. UsageScope {
  6. TenantAndNodeTypeFilter {
  7. Tenant: "<tenant-name>"
  8. }
  9. }
  10. Config {
  11. <config-name> {
  12. <full-config>
  13. }
  14. }
  15. }
  16. }
  17. }

Updating configurations via CMS - 图3

The UsageScope field is optional and is needed to use settings for a specific tenant.

  1. ./kikimr -s <endpoint> admin console configs update <protobuf-file>

Updating configurations via CMS - 图4