Logo
Compute Nodes

Compute Nodes #

SyntaxDescriptionType
SHOW COMPUTE NODESQuery proxy instance informationRQL
SHOW COMPUTE NODE INFOQuery current proxy instance informationRQL
SHOW COMPUTE NODE MODEQuery the mode configuration of the current proxyRQL
ENABLE COMPUTE NODE instanceIdEnable proxy instanceRAL
DISABLE COMPUTE NODE instanceIdDisable proxy instanceRAL
LABEL COMPUTE NODE instanceId WITH labelName [ ,labelName ]Label instanceRAL
UNLABEL COMPUTE NODE instanceIdRemove all labels from instanceRAL
UNLABEL COMPUTE NODE instanceId WITH labelNameRemove specified label from instanceRAL
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

ColumnDescription
instance_idproxy instance id
hosthost address
portport number
statusproxy instance status
mode_typeproxy instance mode
worker_idEach 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
labelslabel
versionversion

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 [ , labelName ]

Example

RELABEL COMPUTE NODE 10.7.7.136@3309 with label_9, label_0