local_ydb_reduce_storage_groups
Reduce a tenant's storage groups by dumping, rebuilding the profile with a smaller storagePoolCount, restoring data, and reapplying auth, preserving dynamic node ports and aborting on incomplete definitions.
Instructions
Reduce NumGroups for a tenant storage pool by dumping the tenant, rebuilding the profile stack with a smaller storagePoolCount, restoring the dump, and reapplying auth when needed. Before dump or destroy, it inspects every one-off dynamic node and preserves its exact gRPC, monitoring, and IC ports; an incomplete definition aborts the rebuild.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of storage groups to remove from the current tenant pool. Defaults to 1. | |
| confirm | No | Must be true to execute planned commands. Omit or false for plan-only output. | |
| profile | No | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. | |
| dumpName | No | Optional dump directory name under profile.dumpHostPath to preserve before rebuild. | |
| poolName | No | Explicit storage pool name. Defaults to <tenantPath>:<storagePoolKind>. | |
| configPath | No | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |