CANCEL DECOMMISSION BACKEND
Note:
This is an engine administration statement. VeloDB Cloud manages FE and BE membership and host configuration for both SaaS and BYOC warehouses. Use cluster management to create or scale compute, and contact VeloDB Cloud support for service-side changes. The syntax below is retained as an engine reference.
Description
This statement is used to cancel the decommissioning operation of a BE node.
Tip:
This statement is not supported in decoupling storage and computing mode.
Syntax
CANCEL DECOMMISSION BACKEND "<be_identifier>" [, "<be_identifier>" ... ]
Where:
be_identifier
: "<be_host>:<be_heartbeat_port>"
| "<backend_id>"
Required parameters
<be_host>
It can be the hostname or IP address of the BE node.
<heartbeat_port>
The heartbeat port of the BE node, the default is 9050.
<backend_id>
The ID of the BE node.
Tip:
<be_host>,<be_heartbeat_port>, and<backend_id>can all be obtained by querying with the SHOW BACKENDS statement.
Access control requirements
The user who executes this SQL must have at least the following permissions:
| Privilege | Object | Notes |
|---|---|---|
| NODE_PRIV |
Usage notes
- After executing this command, you can view the decommissioning status (the value of the
SystemDecommissionedcolumn is false) and the decommissioning progress (the value of theTabletNumcolumn no longer decreases slowly) through the SHOW BACKENDS statement. - The cluster will slowly migrate the tablets from other nodes back to the current BE, so that the number of tablets on each BE will eventually tend to approach.
Examples
-
Safely decommission two nodes from the cluster according to the Host and HeartbeatPort of the BE.
CANCEL DECOMMISSION BACKEND "192.168.0.1:9050", "192.168.0.2:9050"; -
Safely decommission one node from the cluster according to the ID of the BE.
CANCEL DECOMMISSION BACKEND "10002";