Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] Add status code to show be/cn #54460

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ SHOW BACKENDS
## 返回信息说明

```SQL
+-----------+-----------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------+--------------------+--------------------------------------------------------+-------------------+-------------+----------+-------------------+------------+------------+------------------+----------+
| BackendId | IP | HeartbeatPort | BePort | HttpPort | BrpcPort | LastStartTime | LastHeartbeat | Alive | SystemDecommissioned | ClusterDecommissioned | TabletNum | DataUsedCapacity | AvailCapacity | TotalCapacity | UsedPct | MaxDiskUsedPct | ErrMsg | Version | Status | DataTotalCapacity | DataUsedPct | CpuCores | NumRunningQueries | MemUsedPct | CpuUsedPct | DataCacheMetrics | Location |
+-----------+-----------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------+--------------------+--------------------------------------------------------+-------------------+-------------+----------+-------------------+------------+------------+------------------+----------+
+-----------+--------------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------+--------------+--------------------------------------------------------+-------------------+-------------+----------+----------+-------------------+------------+------------+--------------------------------------------------------+----------+------------+
| BackendId | IP | HeartbeatPort | BePort | HttpPort | BrpcPort | LastStartTime | LastHeartbeat | Alive | SystemDecommissioned | ClusterDecommissioned | TabletNum | DataUsedCapacity | AvailCapacity | TotalCapacity | UsedPct | MaxDiskUsedPct | ErrMsg | Version | Status | DataTotalCapacity | DataUsedPct | CpuCores | MemLimit | NumRunningQueries | MemUsedPct | CpuUsedPct | DataCacheMetrics | Location | StatusCode |
+-----------+--------------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------+--------------+--------------------------------------------------------+-------------------+-------------+----------+----------+-------------------+------------+------------+--------------------------------------------------------+----------+------------+
```

返回信息中的参数说明如下:
Expand Down Expand Up @@ -53,11 +53,13 @@ SHOW BACKENDS
| DataTotalCapacity | `DataUsedCapacity` + `AvailCapacity`,即数据文件所占用的磁盘空间 + 可使用的磁盘空间。 |
| DataUsedPct | `DataUsedCapacity`/`DataTotalCapacity`,即数据文件所占用的磁盘空间/(数据文件所占用的磁盘空间 + 可使用的磁盘空间)。 |
| CpuCores | BE 机器的 CPU 核数。 |
| MemLimit | BE 机器的内存上限。 |
| NumRunningQueries | BE 上正在运行的查询数量。 |
| MemUsedPct | 内存使用量百分比。 |
| CpuUsedPct | CPU 使用量百分比。 |
| DataCacheMetrics | Data Cache 状态:<ul><li>`Disabled`:未开启。</li><li>`Normal`:正常。 </li><li>`Abnormal`:异常。 </li><li>`Updating`:正在执行变更操作,例如扩缩容等。 </li></ul> |
| Location | BE 节点的标签。更多信息,参考[使用标签管理 BE 节点](../../../../administration/management/resource_management/be_label.md)。 |
| StatusCode | BE 节点状态码。有效值:<ul><li>`CONNECTING`:BE 节点正在被首次加入集群。</li><li>`OK`:BE 节点正在运行。</li><li>`SHUTDOWN`:BE 节点正在优雅退出。</li><li>`DISCONNECTED`:BE 节点以断链。</li></ul> |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| StatusCode | BE 节点状态码。有效值:<ul><li>`CONNECTING`:BE 节点正在被首次加入集群。</li><li>`OK`:BE 节点正在运行。</li><li>`SHUTDOWN`:BE 节点正在优雅退出。</li><li>`DISCONNECTED`:BE 节点以断链。</li></ul> |
| StatusCode | BE 节点状态码。有效值:<ul><li>`CONNECTING`:BE 节点正在被首次加入集群。</li><li>`OK`:BE 节点正在运行。</li><li>`SHUTDOWN`:BE 节点正在优雅退出。</li><li>`DISCONNECTED`:BE 节点已断链。</li></ul> |


## 示例

Expand Down
Loading