chunshao90 opened a new pull request, #1450:
URL: https://github.com/apache/incubator-horaedb/pull/1450
## Rationale
Introduce command line tool for horaedb, `horaectl`.
## Detailed Changes
* Initial commit.
* Support `list clusters` and `cluster diagnose`.
```
go run main.go --meta_addr 127.0.0.1:8080 --cluster_name defaultCluster
127.0.0.1:8080(defaultCluster) > c
+----+----------------+------------+--------------+-----------------------------+-------------------------+-------------------------+
| ID | NAME | SHARDTOTAL | TOPOLOGYTYPE |
PROCEDUREEXECUTINGBATCHSIZE | CREATEDAT | MODIFIEDAT
|
+----+----------------+------------+--------------+-----------------------------+-------------------------+-------------------------+
| 0 | defaultCluster | 8 | static |
4294967295 | 2024-01-19 15:18:57.034 | 2024-01-19 15:18:57.034 |
+----+----------------+------------+--------------+-----------------------------+-------------------------+-------------------------+
127.0.0.1:8080(defaultCluster) > c d
+---------------------+-------------------------+--------------------------+-----------------------+
| UNREGISTERED_SHARDS | UNREADY_SHARDS:SHARD_ID | UNREADY_SHARDS:NODE_NAME |
UNREADY_SHARDS:STATUS |
+---------------------+-------------------------+--------------------------+-----------------------+
| [] | | |
|
+---------------------+-------------------------+--------------------------+-----------------------+
```
## Test Plan
Manual test.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]