local_ydb_add_dynamic_nodes
Add additional dynamic tenant nodes to a local-ydb cluster, performing preflight checks and starting containers when confirmed.
Instructions
Add one-off dynamic tenant nodes beyond the declarative profile.dynamicNodeCount topology, one at a time. By default the first suffix is dynamicNodeCount + 1; an explicit startIndex must be greater than dynamicNodeCount, and port overrides remain available. Every planned name must be distinct from the static container and all configured plus one-off ports must be valid and unique in the shared network namespace. After each image-presence check, it repeats the full check-only static compatibility preflight, including the current image ID, immediately before each node start; a mismatch stops that node and all later nodes and requires destroy followed by bootstrap. Each dynamic container is created but not started until its resolved image ID matches the static container, closing a concurrent named-tag refresh race. Without confirm=true it returns container/port plans; with confirm=true each node must have a stable running exact Docker container and its IC port in viewer/json nodelist before tenant metadata is checked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of additional dynamic nodes to add. 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. | |
| configPath | No | Explicit local-ydb config file path to load for this tool call. Useful when the MCP server should pick up a different config without restart. | |
| startIndex | No | Suffix for the first added container. It must be greater than profile.dynamicNodeCount. Defaults to profile.dynamicNodeCount + 1, producing <dynamicContainer>-<dynamicNodeCount + 1>. | |
| icPortStart | No | Interconnect port for the first added node. Defaults to profile.dynamicIc + startIndex - 1. | |
| grpcPortStart | No | gRPC port for the first added node. Defaults to profile.dynamicGrpc + startIndex - 1. | |
| monitoringPortStart | No | Monitoring port for the first added node. Defaults to profile.dynamicMonitoring + startIndex - 1. |