Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
1. After the preliminary discussion, the output format of 'SHOW CLUSTER' is as below.
NodeID | Role | Status | Host | Ports |
0 | DataNode | Running |
192.168.10.100 | {"rpc_port":"6667", "mpp_port":"6668", "internal_port":""} |
1 | ConfigNode | Running | 192.168.10.101 |
And I have implemented this feature as below.
2. Some references of other distributed systems.
Clickhouse 'SELECT * FROM system.clusters', displays the information of 'shard_num、shard_weight、replica_num、host_name、host_address、port、is_local、user、default_database、errors_count及estimated_recovery_time'.
┌─cluster───────────────┬─shard_num─┬─shard_weight┬─replica_num┬─host_name─┬─host_address─┬─port┬─is_local┬─user──┬─default_database┬─errors_count─┬─estimated_recovery_time┐
│ cluster_3shards_1replicas │ 1 │ 1 │ 1 │ node01 │ 192.168.10.100 │ 9000 │ 1 │ default │ │ 0 │ 0 │
│ cluster_3shards_1replicas │ 2 │ 1 │ 1 │ node02 │ 192.168.10.110 │ 9000 │ 0 │ default │ │ 0 │ 0 │
│ cluster_3shards_1replicas │ 3 │ 1 │ 1 │ node03 │ 192.168.10.120 │ 9000 │ 0 │ default │ │ 0 │ 0 │
│ test_cluster_two_shards │ 1 │ 1 │ 1 │ 127.0.0.1 │ 127.0.0.1 │ 9000 │ 1 │ default │ │ 0 │ 0 │
│ test_cluster_two_shards │ 2 │ 1 │ 1 │ 127.0.0.2 │ 127.0.0.2 │ 9000 │ 0 │ default │ │ 0 │ 0 │
│ test_cluster_two_shards_localhost │ 1 │ 1 │ 1 │ localhost │ ::1 │ 9000 │ 1 │ default │ │ 0 │ 0 │
│ test_cluster_two_shards_localhost │ 2 │ 1 │ 1 │ localhost │ ::1 │ 9000 │ 1 │ default │ │ 0 │ 0 │
│ test_shard_localhost │ 1 │ 1 │ 1 │ localhost │ ::1 │ 9000 │ 1 │ default │ │ 0 │ 0 │
│ test_shard_localhost_secure │ 1 │ 1 │ 1 │ localhost │ ::1 │ 9440 │ 0 │ default │ │ 0 │ 0 │
│ test_unavailable_shard │ 1 │ 1 │ 1 │ localhost │ ::1 │ 9000 │ 1 │ default │ │ 0 │ 0 │
│ test_unavailable_shard │ 2 │ 1 │ 1 │ localhost │ ::1 │ 1 │ 0 │ default │ │ 0 │ 0 │
└─────────────────────┴──────┴──────────────┴─────────────┴───────────┴────────────────┴──────┴───────────────────────────
3) TiDB 'tiup cluster display', displays the informations of 'ID、Role、Host、Ports、OS、Status、Data Dir、Deploy Dir'.
For Chinese developers, we can forward more information in the document link of FeiShu.
https://apache-iotdb.feishu.cn/docs/doccnfObLV57B9XQ0Tebg8N6Dqf#
Attachments
Attachments
Issue Links
- links to