📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

ALTER WAREHOUSE ASSIGN NODES



Assigns nodes to one or more clusters in a warehouse.

Syntax

ALTER WAREHOUSE <warehouse_name> ASSIGN NODES ( ASSIGN <node_count> NODES [ FROM '<node_group>' ] FOR <cluster_name> [ , ASSIGN <node_count> NODES [ FROM '<node_group>' ] FOR <cluster_name> , ... ] )

Parameters

ParameterDescription
<warehouse_name>The target warehouse.
<node_count>Number of nodes to assign.
FROM '<node_group>'Optional node group selector.
<cluster_name>The target cluster inside the warehouse.

Example

ALTER WAREHOUSE etl_wh ASSIGN NODES ( ASSIGN 2 NODES FOR c1, ASSIGN 1 NODES FROM 'default' FOR c2 );

Was this page helpful?