Compute Nodes #
Syntax | Description | Type |
---|---|---|
SHOW COMPUTE NODES | Query proxy instance information | RQL |
SHOW COMPUTE NODE INFO | Query current proxy instance information | RQL |
SHOW COMPUTE NODE MODE | Query the mode configuration of the current proxy | RQL |
ENABLE COMPUTE NODE instanceId | Enable proxy instance | RAL |
DISABLE COMPUTE NODE instanceId | Disable proxy instance | RAL |
LABEL COMPUTE NODE instanceId WITH labelName [ ,labelName ] | Label instance | RAL |
UNLABEL COMPUTE NODE instanceId | Remove all labels from instance | RAL |
UNLABEL COMPUTE NODE instanceId WITH labelName | Remove specified label from instance | RAL |
RELABEL COMPUTE NODE instanceId with labelName [ , label‑Name ] | Relabel the instance (overwrite the original label) | RAL |
Query proxy instance information #
copySHOW COMPUTE NODES
Parameter Explanation
None
Example
copySHOW COMPUTE NODES
Output Description
Column | Description |
---|---|
instance_id | proxy instance id |
host | host address |
port | port number |
status | proxy instance status |
mode_type | proxy instance mode |
worker_id | Each computing node has a unique worker_id, which is automatically assigned at startup to avoid duplication of the cluster’s computing nodes’ snowflake algorithm ID. The workerid defaults to -1 and is automatically assigned when configuring sharding, and cannot be modified by the user |
labels | label |
version | version |
Enable Proxy Instance #
copyENABLE COMPUTE NODE instanceId
Example
copyENABLE COMPUTE NODE instance_1
Disable Proxy Instance #
copyDISABLE COMPUTE NODE instanceId
Example
copyDISABLE COMPUTE NODE instance_1
Label Instance #
copyLABEL COMPUTE NODE instanceId WITH labelName [ ,labelName ]
Example
copyLABEL COMPUTE NODE 10.7.7.136@3309 with olap ,group_by
Remove All Labels From Instance #
copyUNLABEL COMPUTE NODE instanceId
Example
copyUNLABEL COMPUTE NODE 10.7.7.136@3309
Remove Specified Label From Instance #
copyUNLABEL COMPUTE NODE instanceId WITH labelName
Example
copyUNLABEL COMPUTE NODE 10.7.7.136@3309 WITH group_by
Relabel Instance (overwrite the original label) #
copyRELABEL COMPUTE NODE instanceId with labelName [ , label‑Name ]
Example
copyRELABEL COMPUTE NODE 10.7.7.136@3309 with label_9, label_0