You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Jialin Qiao (Jira)" <ji...@apache.org> on 2022/05/31 09:04:00 UTC
[jira] [Assigned] (IOTDB-3316) Add SHOW CLUSTER implementation for IoTDB MPP mode
[ https://issues.apache.org/jira/browse/IOTDB-3316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jialin Qiao reassigned IOTDB-3316:
----------------------------------
Assignee: Gaofei Cao
> Add SHOW CLUSTER implementation for IoTDB MPP mode
> --------------------------------------------------
>
> Key: IOTDB-3316
> URL: https://issues.apache.org/jira/browse/IOTDB-3316
> Project: Apache IoTDB
> Issue Type: New Feature
> Components: Core/Cluster
> Reporter: Cao Gaofei
> Assignee: Gaofei Cao
> Priority: Major
> Labels: pull-request-available
> Fix For: master branch
>
> Attachments: image-2022-05-29-17-47-58-071.png, image-2022-05-29-17-57-57-341.png
>
> Original Estimate: 72h
> Remaining Estimate: 72h
>
> 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.
> !image-2022-05-29-17-57-57-341.png|width=388,height=269!
>
> 2. Some references of other distributed systems.
> 1) TDEngine 'show dnodes', displays the information of 'id、end_point、vnodes、cores、status、role、create_time'.
>
> !https://apache-iotdb.feishu.cn/space/api/box/stream/download/asynccode/?code=MDBlZTQzNGJlNzQ3ZDM2MjgzODA4ZjdlY2E1YjIwNzdfZk1WTjdGbzZlM2I1NjJOWW1YSlkwcUhjdzJYcXNoUE1fVG9rZW46Ym94Y25hQ1RqNlRSdDdnVXNtT1NPWDhMRlNiXzE2NTM4MTczNzM6MTY1MzgyMDk3M19WNA|width=477,height=143!
> 2) 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'.
> !image-2022-05-29-17-47-58-071.png|width=636,height=220!
>
> For Chinese developers, we can forward more information in the document link of FeiShu.
> [https://apache-iotdb.feishu.cn/docs/doccnfObLV57B9XQ0Tebg8N6Dqf#]
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)