Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-3316

Add SHOW CLUSTER implementation for IoTDB MPP mode

    XMLWordPrintableJSON

Details

    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

        1. image-2022-05-29-17-47-58-071.png
          1.27 MB
          Cao Gaofei
        2. image-2022-05-29-17-57-57-341.png
          404 kB
          Cao Gaofei

        Issue Links

          Activity

            People

              caogaofei Gaofei Cao
              beyyes Cao Gaofei
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 72h
                  72h
                  Remaining:
                  Remaining Estimate - 72h
                  72h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified