BePPPower opened a new pull request, #13086: URL: https://github.com/apache/doris/pull/13086
# Proposed changes Issue Number: close #xxx I add the `backends` table into information_schema database. The table schema of `backends` is: ``` MySQL > desc information_schema.backends; +-----------------------+------------+------+-------+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------------------+------------+------+-------+---------+-------+ | BackendId | BIGINT | Yes | false | NULL | | | Cluster | VARCHAR(*) | Yes | false | NULL | | | IP | VARCHAR(*) | Yes | false | NULL | | | HeartbeatPort | INT | Yes | false | NULL | | | BePort | INT | Yes | false | NULL | | | HttpPort | INT | Yes | false | NULL | | | BrpcPort | INT | Yes | false | NULL | | | LastStartTime | VARCHAR(*) | Yes | false | NULL | | | LastHeartbeat | VARCHAR(*) | Yes | false | NULL | | | Alive | VARCHAR(*) | Yes | false | NULL | | | SystemDecommissioned | VARCHAR(*) | Yes | false | NULL | | | ClusterDecommissioned | VARCHAR(*) | Yes | false | NULL | | | TabletNum | BIGINT | Yes | false | NULL | | | DataUsedCapacity | VARCHAR(*) | Yes | false | NULL | | | AvailCapacity | VARCHAR(*) | Yes | false | NULL | | | TotalCapacity | VARCHAR(*) | Yes | false | NULL | | | UsedPct | VARCHAR(*) | Yes | false | NULL | | | MaxDiskUsedPct | VARCHAR(*) | Yes | false | NULL | | | RemoteUsedCapacity | VARCHAR(*) | Yes | false | NULL | | | Tag | VARCHAR(*) | Yes | false | NULL | | | ErrMsg | VARCHAR(*) | Yes | false | NULL | | | Version | VARCHAR(*) | Yes | false | NULL | | | Status | VARCHAR(*) | Yes | false | NULL | | +-----------------------+------------+------+-------+---------+-------+ ``` **Usage:** ``` MySQL [(none)]> select * from information_schema.backends; +-----------+-----------------+-----------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------------------+--------------------------+--------------------------------------------------------------+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | BackendId | Cluster | IP | HeartbeatPort | BePort | HttpPort | BrpcPort | LastStartTime | LastHeartbeat | Alive | SystemDecommissioned | ClusterDecommissioned | TabletNum | DataUsedCapacity | AvailCapacity | TotalCapacity | UsedPct | MaxDiskUsedPct | RemoteUsedCapacity | Tag | ErrMsg | Version | Status | +-----------+-----------------+-----------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------------------+--------------------------+--------------------------------------------------------------+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | 103051 | default_cluster | 127.0.0.5 | 9222 | -1 | -1 | -1 | \N | \N | false | false | false | 0 | 0.000 | 1.000 B | 0.000 | 0.00 % | 0.00 % | 0.000 | {"location" : "default"} | java.net.ConnectException: 拒绝连接 (Connection refused) | | {"lastSuccessReportTabletsTime":"N/A","lastStreamLoadTime":-1,"isQueryDisabled":false,"isLoadDisabled":false} | | 10005 | default_cluster | 127.0.0.1 | 9159 | 9169 | 8149 | 8169 | 2022-09-30 14:50:48 | 2022-09-30 14:55:05 | true | false | false | 2057 | 530.797 KB | 88.246 GB | 1.961 TB | 95.60 % | 95.60 % | 0.000 | {"location" : "default"} | | doris-0.0.0-trunk-b5437463f | {"lastSuccessReportTabletsTime":"2022-09-30 14:54:10","lastStreamLoadTime":-1,"isQueryDisabled":false,"isLoadDisabled":false} | +-----------+-----------------+-----------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------------------+--------------------------+--------------------------------------------------------------+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------+ ``` ``` MySQL [(none)]> select * from information_schema.backends where Alive='true'; +-----------+-----------------+-----------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------------------+--------------------------+--------+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | BackendId | Cluster | IP | HeartbeatPort | BePort | HttpPort | BrpcPort | LastStartTime | LastHeartbeat | Alive | SystemDecommissioned | ClusterDecommissioned | TabletNum | DataUsedCapacity | AvailCapacity | TotalCapacity | UsedPct | MaxDiskUsedPct | RemoteUsedCapacity | Tag | ErrMsg | Version | Status | +-----------+-----------------+-----------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------------------+--------------------------+--------+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------+ | 10005 | default_cluster | 127.0.0.1 | 9159 | 9169 | 8149 | 8169 | 2022-09-30 14:50:48 | 2022-09-30 14:56:05 | true | false | false | 2057 | 530.797 KB | 88.246 GB | 1.961 TB | 95.60 % | 95.60 % | 0.000 | {"location" : "default"} | | doris-0.0.0-trunk-b5437463f | {"lastSuccessReportTabletsTime":"2022-09-30 14:55:14","lastStreamLoadTime":-1,"isQueryDisabled":false,"isLoadDisabled":false} | +-----------+-----------------+-----------+---------------+--------+----------+----------+---------------------+---------------------+-------+----------------------+-----------------------+-----------+------------------+---------------+---------------+---------+----------------+--------------------+--------------------------+--------+-----------------------------+-------------------------------------------------------------------------------------------------------------------------------+ ``` ## Problem summary Describe your changes. ## Checklist(Required) 1. Does it affect the original behavior: - [ ] Yes - [x] No - [ ] I don't know 2. Has unit tests been added: - [ ] Yes - [ ] No - [x] No Need 3. Has document been added or modified: - [ ] Yes - [ ] No - [x] No Need 4. Does it need to update dependencies: - [ ] Yes - [x] No 5. Are there any changes that cannot be rolled back: - [ ] Yes (If Yes, please explain WHY) - [x] No ## Further comments If this is a relatively large or complex change, kick off the discussion at [d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org