admin cluster config replace

With the admin cluster config replace command, you can upload a dynamic configuration to the YDB cluster.

Alert

Commands in this section can harm your cluster if used incorrectly. Due to the potentially dangerous nature of these commands, ALL global parameters must be specified explicitly. Profiles are disabled by default and are only used when explicitly specified (--profile ). Some commands do not require global options that are otherwise mandatory.

General command syntax:

ydb [global options...] admin cluster config replace [options...]

View the description of the dynamic configuration replacement command:

ydb admin cluster config replace --help

Subcommand Parameters

Name

Description

-f, --filename

Path to the file containing the configuration.

--allow-unknown-fields

Allow unknown fields in the configuration.

If the flag is not set, unknown fields in the configuration result in an error.

--ignore-local-validation

Ignore basic client-side configuration validation.

If the flag is not set, YDB CLI performs basic client-side configuration validation.

Examples

Upload the dynamic configuration file to the cluster:

ydb admin cluster config replace --filename config.yaml

Upload the dynamic configuration file to the cluster, ignoring local applicability checks:

ydb admin cluster config replace -f config.yaml --ignore-local-validation

Upload the dynamic configuration file to the cluster, ignoring the check for unknown fields:

ydb admin cluster config replace -f config.yaml --allow-unknown-fields