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 #
SHOW COMPUTE NODES
Parameter Explanation
None
Example
SHOW 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 #
ENABLE COMPUTE NODE instanceId
Example
ENABLE COMPUTE NODE instance_1
Disable Proxy Instance #
DISABLE COMPUTE NODE instanceId
Example
DISABLE COMPUTE NODE instance_1
Label Instance #
LABEL COMPUTE NODE instanceId WITH labelName [ ,labelName ]
Example
LABEL COMPUTE NODE 10.7.7.136@3309 with olap ,group_by
Remove All Labels From Instance #
UNLABEL COMPUTE NODE instanceId
Example
UNLABEL COMPUTE NODE 10.7.7.136@3309
Remove Specified Label From Instance #
UNLABEL COMPUTE NODE instanceId WITH labelName
Example
UNLABEL COMPUTE NODE 10.7.7.136@3309 WITH group_by
Relabel Instance (overwrite the original label) #
RELABEL COMPUTE NODE instanceId with labelName [ , label‑Name ]
Example
RELABEL COMPUTE NODE 10.7.7.136@3309 with label_9, label_0