You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Leicong Li (Jira)" <ji...@apache.org> on 2021/09/04 08:07:00 UTC

[jira] [Commented] (IOTDB-1590) Support count devices in cluster

    [ https://issues.apache.org/jira/browse/IOTDB-1590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17409897#comment-17409897 ] 

Leicong Li commented on IOTDB-1590:
-----------------------------------

Whats the expect result?

From the issue description, the benchmark created 2000 devices on a 3 nodes cluster

  640 devices on node 192.168.130.5

  720 devices on node 192.168.130.10

  640 devices on node 192.168.130.13

When we query devices number for each node, it returns the correct device number allocated on itself.

 

 

> Support count devices in cluster
> --------------------------------
>
>                 Key: IOTDB-1590
>                 URL: https://issues.apache.org/jira/browse/IOTDB-1590
>             Project: Apache IoTDB
>          Issue Type: New Feature
>          Components: Core/Cluster
>    Affects Versions: 0.12.2
>            Reporter: 刘珍
>            Priority: Major
>              Labels: easy-fix
>         Attachments: config.properties, image-2021-08-26-11-13-04-210.png
>
>
> iotdb info :
>     release 0.12.2 RC1 
> conf/iotdb-cluster.properties :
>     seed_nodes=192.168.130.5:9005,192.168.130.10:9010,192.168.130.13:9013
>     default_replica_num=1
> benchmark create 2000 devices .
> cli execute "count devices" on 3 nodes ,the result is inconsistent :
> [iotdb@fit05 release_1202]$ ./sbin/start-cli.sh -h 192.168.130.5 -p 6688 -e "count devices"
> +-------+
> |devices|
> +-------+
> |    640|
> +-------+
> Total line number = 1
> It costs 0.065s
> [iotdb@fit05 release_1202]$ ./sbin/start-cli.sh -h 192.168.130.10 -p 6688 -e "count devices"
> +-------+
> |devices|
> +-------+
> |    720|
> +-------+
> Total line number = 1
> It costs 0.079s
> [iotdb@fit05 release_1202]$ ./sbin/start-cli.sh -h 192.168.130.13 -p 6688 -e "count devices"
> +-------+
> |devices|
> +-------+
> |    640|
> +-------+
>  !image-2021-08-26-11-13-04-210.png! 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)