Currently, IoTDB supports showing key parameters of the cluster:
SHOW VARIABLES
Eg:
IoTDB> show variables +----------------------------------+-----------------------------------------------------------------+ | Variables| Value| +----------------------------------+-----------------------------------------------------------------+ | ClusterName| defaultCluster| | DataReplicationFactor| 1| | SchemaReplicationFactor| 1| | DataRegionConsensusProtocolClass| org.apache.iotdb.consensus.iot.IoTConsensus| |SchemaRegionConsensusProtocolClass| org.apache.iotdb.consensus.ratis.RatisConsensus| | ConfigNodeConsensusProtocolClass| org.apache.iotdb.consensus.ratis.RatisConsensus| | TimePartitionInterval| 604800000| | DefaultTTL(ms)| 9223372036854775807| | ReadConsistencyLevel| strong| | SchemaRegionPerDataNode| 1.0| | DataRegionPerProcessor| 1.0| | LeastDataRegionGroupNum| 5| | SeriesSlotNum| 10000| | SeriesSlotExecutorClass|org.apache.iotdb.commons.partition.executor.hash.BKDRHashExecutor| | DiskSpaceWarningThreshold| 0.05| +----------------------------------+-----------------------------------------------------------------+ Total line number = 15 It costs 0.225s
Notice: Ensure that all key parameters displayed in this SQL are consist on each node in the same cluster
Currently, IoTDB supports showing ConfigNode information by the following SQL:
SHOW CONFIGNODES
Eg:
IoTDB> show confignodes +------+-------+---------------+------------+--------+ |NodeID| Status|InternalAddress|InternalPort| Role| +------+-------+---------------+------------+--------+ | 0|Running| 127.0.0.1| 10710| Leader| | 1|Running| 127.0.0.1| 10711|Follower| | 2|Running| 127.0.0.1| 10712|Follower| +------+-------+---------------+------------+--------+ Total line number = 3 It costs 0.030s
The ConfigNode statuses are defined as follows:
Currently, IoTDB supports showing DataNode information by the following SQL:
SHOW DATANODES
Eg:
IoTDB> create timeseries root.sg.d1.s1 with datatype=BOOLEAN,encoding=PLAIN Msg: The statement is executed successfully. IoTDB> create timeseries root.sg.d2.s1 with datatype=BOOLEAN,encoding=PLAIN Msg: The statement is executed successfully. IoTDB> create timeseries root.ln.d1.s1 with datatype=BOOLEAN,encoding=PLAIN Msg: The statement is executed successfully. IoTDB> show datanodes +------+-------+----------+-------+-------------+---------------+ |NodeID| Status|RpcAddress|RpcPort|DataRegionNum|SchemaRegionNum| +------+-------+----------+-------+-------------+---------------+ | 1|Running| 127.0.0.1| 6667| 0| 1| | 2|Running| 127.0.0.1| 6668| 0| 1| +------+-------+----------+-------+-------------+---------------+ Total line number = 2 It costs 0.007s IoTDB> insert into root.ln.d1(timestamp,s1) values(1,true) Msg: The statement is executed successfully. IoTDB> show datanodes +------+-------+----------+-------+-------------+---------------+ |NodeID| Status|RpcAddress|RpcPort|DataRegionNum|SchemaRegionNum| +------+-------+----------+-------+-------------+---------------+ | 1|Running| 127.0.0.1| 6667| 1| 1| | 2|Running| 127.0.0.1| 6668| 0| 1| +------+-------+----------+-------+-------------+---------------+ Total line number = 2 It costs 0.006s
The state machine of DataNode is shown in the figure below:
The DataNode statuses are defined as follows:
For a DataNode, the following table describes the impact of data read, write, and deletion in different status:
| DataNode status | readable | writable | deletable |
|---|---|---|---|
| Running | yes | yes | yes |
| Unknown | no | no | no |
| Removing | no | no | no |
| ReadOnly | yes | no | yes |
Currently, IoTDB supports show the information of all Nodes by the following SQL:
SHOW CLUSTER
Eg:
IoTDB> show cluster +------+----------+-------+---------------+------------+ |NodeID| NodeType| Status|InternalAddress|InternalPort| +------+----------+-------+---------------+------------+ | 0|ConfigNode|Running| 127.0.0.1| 10710| | 1|ConfigNode|Running| 127.0.0.1| 10711| | 2|ConfigNode|Running| 127.0.0.1| 10712| | 3| DataNode|Running| 127.0.0.1| 10730| | 4| DataNode|Running| 127.0.0.1| 10731| | 5| DataNode|Running| 127.0.0.1| 10732| +------+----------+-------+---------------+------------+ Total line number = 6 It costs 0.011s
After a node is stopped, its status will change, as shown below:
IoTDB> show cluster +------+----------+-------+---------------+------------+ |NodeID| NodeType| Status|InternalAddress|InternalPort| +------+----------+-------+---------------+------------+ | 0|ConfigNode|Running| 127.0.0.1| 10710| | 1|ConfigNode|Unknown| 127.0.0.1| 10711| | 2|ConfigNode|Running| 127.0.0.1| 10712| | 3| DataNode|Running| 127.0.0.1| 10730| | 4| DataNode|Running| 127.0.0.1| 10731| | 5| DataNode|Running| 127.0.0.1| 10732| +------+----------+-------+---------------+------------+ Total line number = 6 It costs 0.012s
Show the details of all nodes:
SHOW CLUSTER DETAILS
Eg:
IoTDB> show cluster details +------+----------+-------+---------------+------------+-------------------+----------+-------+-------+-------------------+-----------------+ |NodeID| NodeType| Status|InternalAddress|InternalPort|ConfigConsensusPort|RpcAddress|RpcPort|MppPort|SchemaConsensusPort|DataConsensusPort| +------+----------+-------+---------------+------------+-------------------+----------+-------+-------+-------------------+-----------------+ | 0|ConfigNode|Running| 127.0.0.1| 10710| 10720| | | | | | | 1|ConfigNode|Running| 127.0.0.1| 10711| 10721| | | | | | | 2|ConfigNode|Running| 127.0.0.1| 10712| 10722| | | | | | | 3| DataNode|Running| 127.0.0.1| 10730| | 127.0.0.1| 6667| 10740| 10750| 10760| | 4| DataNode|Running| 127.0.0.1| 10731| | 127.0.0.1| 6668| 10741| 10751| 10761| | 5| DataNode|Running| 127.0.0.1| 10732| | 127.0.0.1| 6669| 10742| 10752| 10762| +------+----------+-------+---------------+------------+-------------------+----------+-------+-------+-------------------+-----------------+ Total line number = 6 It costs 0.340s
The cluster uses a SchemaRegion/DataRegion as a unit for schema/data replication and data management. The Region status and distribution is helpful for system operation and maintenance testing, as shown in the following scenarios:
Currently, IoTDB supports show Region information by the following SQL:
SHOW REGIONS: Show distribution of all Regions.SHOW SCHEMA REGIONS: Show distribution of all SchemaRegions.SHOW DATA REGIONS: Show distribution of all DataRegions.SHOW (DATA|SCHEMA)? REGIONS OF DATABASE <sg1,sg2,...>: Show Region distribution of specified StorageGroups.SHOW (DATA|SCHEMA)? REGIONS ON NODEID <id1,id2,...>: Show Region distribution on specified Nodes.SHOW (DATA|SCHEMA)? REGIONS (OF DATABASE <sg1,sg2,...>)? (ON NODEID <id1,id2,...>)?: Show Region distribution of specified StorageGroups on specified Nodes.Show distribution of all Regions:
IoTDB> show regions +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ |RegionId| Type| Status|Database|SeriesSlots|TimeSlots|DataNodeId|RpcAddress|RpcPort| Role| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ | 0| DataRegion|Running|root.sg1| 1| 1| 1| 127.0.0.1| 6667|Follower| | 0| DataRegion|Running|root.sg1| 1| 1| 2| 127.0.0.1| 6668| Leader| | 0| DataRegion|Running|root.sg1| 1| 1| 3| 127.0.0.1| 6669|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 1| 127.0.0.1| 6667|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 2| 127.0.0.1| 6668|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 3| 127.0.0.1| 6669| Leader| | 2| DataRegion|Running|root.sg2| 1| 1| 1| 127.0.0.1| 6667| Leader| | 2| DataRegion|Running|root.sg2| 1| 1| 2| 127.0.0.1| 6668|Follower| | 2| DataRegion|Running|root.sg2| 1| 1| 3| 127.0.0.1| 6669|Follower| | 3|SchemaRegion|Running|root.sg2| 1| 0| 1| 127.0.0.1| 6667|Follower| | 3|SchemaRegion|Running|root.sg2| 1| 0| 2| 127.0.0.1| 6668| Leader| | 3|SchemaRegion|Running|root.sg2| 1| 0| 3| 127.0.0.1| 6669|Follower| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ Total line number = 12 It costs 0.165s
Show the distribution of SchemaRegions or DataRegions:
IoTDB> show data regions +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ |RegionId| Type| Status|Database|SeriesSlots|TimeSlots|DataNodeId|RpcAddress|RpcPort| Role| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ | 0| DataRegion|Running|root.sg1| 1| 1| 1| 127.0.0.1| 6667|Follower| | 0| DataRegion|Running|root.sg1| 1| 1| 2| 127.0.0.1| 6668| Leader| | 0| DataRegion|Running|root.sg1| 1| 1| 3| 127.0.0.1| 6669|Follower| | 2| DataRegion|Running|root.sg2| 1| 1| 1| 127.0.0.1| 6667| Leader| | 2| DataRegion|Running|root.sg2| 1| 1| 2| 127.0.0.1| 6668|Follower| | 2| DataRegion|Running|root.sg2| 1| 1| 3| 127.0.0.1| 6669|Follower| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ Total line number = 6 It costs 0.011s IoTDB> show schema regions +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ |RegionId| Type| Status|Database|SeriesSlots|TimeSlots|DataNodeId|RpcAddress|RpcPort| Role| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ | 1|SchemaRegion|Running|root.sg1| 1| 0| 1| 127.0.0.1| 6667|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 2| 127.0.0.1| 6668|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 3| 127.0.0.1| 6669| Leader| | 3|SchemaRegion|Running|root.sg2| 1| 0| 1| 127.0.0.1| 6667|Follower| | 3|SchemaRegion|Running|root.sg2| 1| 0| 2| 127.0.0.1| 6668| Leader| | 3|SchemaRegion|Running|root.sg2| 1| 0| 3| 127.0.0.1| 6669|Follower| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ Total line number = 6 It costs 0.012s
Show Region distribution of specified StorageGroups:
IoTDB> show regions of database root.sg1 +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ |RegionId| Type| Status|Database|SeriesSlots|TimeSlots|DataNodeId|RpcAddress|RpcPort| Role| +--------+------------+-------+-- -----+-----------+---------+----------+----------+-------+--------+ | 0| DataRegion|Running|root.sg1| 1| 1| 1| 127.0.0.1| 6667|Follower| | 0| DataRegion|Running|root.sg1| 1| 1| 2| 127.0.0.1| 6668| Leader| | 0| DataRegion|Running|root.sg1| 1| 1| 3| 127.0.0.1| 6669|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 1| 127.0.0.1| 6667|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 2| 127.0.0.1| 6668|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 3| 127.0.0.1| 6669| Leader| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ Total line number = 6 It costs 0.007s IoTDB> show regions of database root.sg1, root.sg2 +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ |RegionId| Type| Status|Database|SeriesSlots|TimeSlots|DataNodeId|RpcAddress|RpcPort| Role| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ | 0| DataRegion|Running|root.sg1| 1| 1| 1| 127.0.0.1| 6667|Follower| | 0| DataRegion|Running|root.sg1| 1| 1| 2| 127.0.0.1| 6668| Leader| | 0| DataRegion|Running|root.sg1| 1| 1| 3| 127.0.0.1| 6669|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 1| 127.0.0.1| 6667|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 2| 127.0.0.1| 6668|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 3| 127.0.0.1| 6669| Leader| | 2| DataRegion|Running|root.sg2| 1| 1| 1| 127.0.0.1| 6667| Leader| | 2| DataRegion|Running|root.sg2| 1| 1| 2| 127.0.0.1| 6668|Follower| | 2| DataRegion|Running|root.sg2| 1| 1| 3| 127.0.0.1| 6669|Follower| | 3|SchemaRegion|Running|root.sg2| 1| 0| 1| 127.0.0.1| 6667|Follower| | 3|SchemaRegion|Running|root.sg2| 1| 0| 2| 127.0.0.1| 6668| Leader| | 3|SchemaRegion|Running|root.sg2| 1| 0| 3| 127.0.0.1| 6669|Follower| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ Total line number = 12 It costs 0.009s IoTDB> show data regions of database root.sg1, root.sg2 +--------+----------+-------+--------+-----------+---------+----------+----------+-------+--------+ |RegionId| Type| Status|Database|SeriesSlots|TimeSlots|DataNodeId|RpcAddress|RpcPort| Role| +--------+----------+-------+--------+-----------+---------+----------+----------+-------+--------+ | 0|DataRegion|Running|root.sg1| 1| 1| 1| 127.0.0.1| 6667|Follower| | 0|DataRegion|Running|root.sg1| 1| 1| 2| 127.0.0.1| 6668| Leader| | 0|DataRegion|Running|root.sg1| 1| 1| 3| 127.0.0.1| 6669|Follower| | 2|DataRegion|Running|root.sg2| 1| 1| 1| 127.0.0.1| 6667| Leader| | 2|DataRegion|Running|root.sg2| 1| 1| 2| 127.0.0.1| 6668|Follower| | 2|DataRegion|Running|root.sg2| 1| 1| 3| 127.0.0.1| 6669|Follower| +--------+----------+-------+--------+-----------+---------+----------+----------+-------+--------+ Total line number = 6 It costs 0.007s IoTDB> show schema regions of database root.sg1, root.sg2 +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ |RegionId| Type| Status|Database|SeriesSlots|TimeSlots|DataNodeId|RpcAddress|RpcPort| Role| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ | 1|SchemaRegion|Running|root.sg1| 1| 0| 1| 127.0.0.1| 6667|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 2| 127.0.0.1| 6668|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 3| 127.0.0.1| 6669| Leader| | 3|SchemaRegion|Running|root.sg2| 1| 0| 1| 127.0.0.1| 6667|Follower| | 3|SchemaRegion|Running|root.sg2| 1| 0| 2| 127.0.0.1| 6668| Leader| | 3|SchemaRegion|Running|root.sg2| 1| 0| 3| 127.0.0.1| 6669|Follower| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ Total line number = 6 It costs 0.009s
Show Region distribution on specified Nodes:
IoTDB> show regions on nodeid 1 +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ |RegionId| Type| Status|Database|SeriesSlots|TimeSlots|DataNodeId|RpcAddress|RpcPort| Role| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ | 0| DataRegion|Running|root.sg1| 1| 1| 1| 127.0.0.1| 6667|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 1| 127.0.0.1| 6667|Follower| | 2| DataRegion|Running|root.sg2| 1| 1| 1| 127.0.0.1| 6667| Leader| | 3|SchemaRegion|Running|root.sg2| 1| 0| 1| 127.0.0.1| 6667|Follower| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ Total line number = 4 It costs 0.165s IoTDB> show regions on nodeid 1, 2 +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ |RegionId| Type| Status|Database|SeriesSlots|TimeSlots|DataNodeId|RpcAddress|RpcPort| Role| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ | 0| DataRegion|Running|root.sg1| 1| 1| 1| 127.0.0.1| 6667|Follower| | 0| DataRegion|Running|root.sg1| 1| 1| 2| 127.0.0.1| 6668| Leader| | 1|SchemaRegion|Running|root.sg1| 1| 0| 1| 127.0.0.1| 6667|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 2| 127.0.0.1| 6668|Follower| | 2| DataRegion|Running|root.sg2| 1| 1| 1| 127.0.0.1| 6667| Leader| | 2| DataRegion|Running|root.sg2| 1| 1| 2| 127.0.0.1| 6668|Follower| | 3|SchemaRegion|Running|root.sg2| 1| 0| 1| 127.0.0.1| 6667|Follower| | 3|SchemaRegion|Running|root.sg2| 1| 0| 2| 127.0.0.1| 6668| Leader| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ Total line number = 8 It costs 0.165s
Show Region distribution of specified StorageGroups on specified Nodes:
IoTDB> show regions of database root.sg1 on nodeid 1 +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ |RegionId| Type| Status|Database|SeriesSlots|TimeSlots|DataNodeId|RpcAddress|RpcPort| Role| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ | 0| DataRegion|Running|root.sg1| 1| 1| 1| 127.0.0.1| 6667|Follower| | 1|SchemaRegion|Running|root.sg1| 1| 0| 1| 127.0.0.1| 6667|Follower| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ Total line number = 2 It costs 0.165s IoTDB> show data regions of database root.sg1, root.sg2 on nodeid 1, 2 +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ |RegionId| Type| Status|Database|SeriesSlots|TimeSlots|DataNodeId|RpcAddress|RpcPort| Role| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ | 0| DataRegion|Running|root.sg1| 1| 1| 1| 127.0.0.1| 6667|Follower| | 0| DataRegion|Running|root.sg1| 1| 1| 2| 127.0.0.1| 6668| Leader| | 2| DataRegion|Running|root.sg2| 1| 1| 1| 127.0.0.1| 6667| Leader| | 2| DataRegion|Running|root.sg2| 1| 1| 2| 127.0.0.1| 6668|Follower| +--------+------------+-------+--------+-----------+---------+----------+----------+-------+--------+ Total line number = 4 It costs 0.165s
Region inherits the status of the DataNode where the Region resides. And Region states are defined as follows:
The status switchover of a Region doesn't affect the belonged RegionGroup, when setting up a multi-replica cluster(i.e. the number of schema replica and data replica is greater than 1), other Running Regions of the same RegionGroup ensure the high availability of RegionGroup.
For a RegionGroup:
The cluster uses partitions for schema and data arrangement, the partition is defined as follows:
SchemaPartition: series slotDataPartition: <series slot, time slot>The cluster slots information can be shown by the following SQLs:
Show the DataRegion where a DataPartition(or all DataPartitions under a same series slot) resides in:
SHOW DATA REGIONID OF root.sg WHERE SERIESSLOTID=s0 (AND TIMESLOTID=t0)The “SERIESSLOTID=s0” can be substituted by “DEVICEID=xxx.xx.xx”. Using this, the sql will calculate the seriesSlot corresponding to that deviceId.
Also, the “TIMESLOTID=t0” can be replaced by “TIMESTAMP=t1”. In this case, the sql will calculate the timeSlot the timestamp belongs to, which starts before the timeStamp and (implicitly) ends after it.
Eg:
IoTDB> show data regionid of root.sg where seriesslotid=5286 and timeslotid=0 +--------+ |RegionId| +--------+ | 1| +--------+ Total line number = 1 It costs 0.006s IoTDB> show data regionid of root.sg where seriesslotid=5286 +--------+ |RegionId| +--------+ | 1| | 2| +--------+ Total line number = 2 It costs 0.006s
Show the SchemaRegion where a SchemaPartition resides in:
SHOW SCHEMA REGIONID OF root.sg WHERE SERIESSLOTID=s0As is illustrated above, the SeriesSlotID and TimeSlotID are both replaceable.
Eg:
IoTDB> show schema regionid of root.sg where seriesslotid=5286 +--------+ |RegionId| +--------+ | 0| +--------+ Total line number = 1 It costs 0.007s
Show the time slots under a particular series slot.
SHOW TIMESLOTID OF root.sg WHERE SERIESLOTID=s0 (AND STARTTIME=t1) (AND ENDTIME=t2)Eg:
IoTDB> show timeslotid of root.sg where seriesslotid=5286 +----------+ |TimeSlotId| +----------+ | 0| | 1000| +----------+ Total line number = 1 It costs 0.007s
Show the data/schema/all series slots related to a database:
SHOW (DATA|SCHEMA)? SERIESSLOTID OF root.sgEg:
IoTDB> show data seriesslotid of root.sg +------------+ |SeriesSlotId| +------------+ | 5286| +------------+ Total line number = 1 It costs 0.007s IoTDB> show schema seriesslotid of root.sg +------------+ |SeriesSlotId| +------------+ | 5286| +------------+ Total line number = 1 It costs 0.006s IoTDB> show seriesslotid of root.sg +------------+ |SeriesSlotId| +------------+ | 5286| +------------+ Total line number = 1 It costs 0.006s
The following sql can be applied to manually migrate a region, for load balancing or other purposes.
MIGRATE REGION <Region-id> FROM <original-DataNodeId> TO <dest-DataNodeId>
Eg:
IoTDB> SHOW REGIONS +--------+------------+-------+-------------+------------+----------+----------+----------+-------+--------+ |RegionId| Type| Status| Database|SeriesSlotId|TimeSlotId|DataNodeId|RpcAddress|RpcPort| Role| +--------+------------+-------+-------------+------------+----------+----------+----------+-------+--------+ | 0|SchemaRegion|Running|root.test.g_0| 500| 0| 3| 127.0.0.1| 6670| Leader| | 0|SchemaRegion|Running|root.test.g_0| 500| 0| 4| 127.0.0.1| 6681|Follower| | 0|SchemaRegion|Running|root.test.g_0| 500| 0| 5| 127.0.0.1| 6668|Follower| | 1| DataRegion|Running|root.test.g_0| 183| 200| 1| 127.0.0.1| 6667|Follower| | 1| DataRegion|Running|root.test.g_0| 183| 200| 3| 127.0.0.1| 6670|Follower| | 1| DataRegion|Running|root.test.g_0| 183| 200| 7| 127.0.0.1| 6669| Leader| | 2| DataRegion|Running|root.test.g_0| 181| 200| 3| 127.0.0.1| 6670| Leader| | 2| DataRegion|Running|root.test.g_0| 181| 200| 4| 127.0.0.1| 6681|Follower| | 2| DataRegion|Running|root.test.g_0| 181| 200| 5| 127.0.0.1| 6668|Follower| | 3| DataRegion|Running|root.test.g_0| 180| 200| 1| 127.0.0.1| 6667|Follower| | 3| DataRegion|Running|root.test.g_0| 180| 200| 5| 127.0.0.1| 6668| Leader| | 3| DataRegion|Running|root.test.g_0| 180| 200| 7| 127.0.0.1| 6669|Follower| | 4| DataRegion|Running|root.test.g_0| 179| 200| 3| 127.0.0.1| 6670|Follower| | 4| DataRegion|Running|root.test.g_0| 179| 200| 4| 127.0.0.1| 6681| Leader| | 4| DataRegion|Running|root.test.g_0| 179| 200| 7| 127.0.0.1| 6669|Follower| | 5| DataRegion|Running|root.test.g_0| 179| 200| 1| 127.0.0.1| 6667| Leader| | 5| DataRegion|Running|root.test.g_0| 179| 200| 4| 127.0.0.1| 6681|Follower| | 5| DataRegion|Running|root.test.g_0| 179| 200| 5| 127.0.0.1| 6668|Follower| +--------+------------+-------+-------------+------------+----------+----------+----------+-------+--------+ Total line number = 18 It costs 0.161s IoTDB> MIGRATE REGION 1 FROM 3 TO 4 Msg: The statement is executed successfully. IoTDB> SHOW REGIONS +--------+------------+-------+-------------+------------+----------+----------+----------+-------+--------+ |RegionId| Type| Status| Database|SeriesSlotId|TimeSlotId|DataNodeId|RpcAddress|RpcPort| Role| +--------+------------+-------+-------------+------------+----------+----------+----------+-------+--------+ | 0|SchemaRegion|Running|root.test.g_0| 500| 0| 3| 127.0.0.1| 6670| Leader| | 0|SchemaRegion|Running|root.test.g_0| 500| 0| 4| 127.0.0.1| 6681|Follower| | 0|SchemaRegion|Running|root.test.g_0| 500| 0| 5| 127.0.0.1| 6668|Follower| | 1| DataRegion|Running|root.test.g_0| 183| 200| 1| 127.0.0.1| 6667|Follower| | 1| DataRegion|Running|root.test.g_0| 183| 200| 4| 127.0.0.1| 6681|Follower| | 1| DataRegion|Running|root.test.g_0| 183| 200| 7| 127.0.0.1| 6669| Leader| | 2| DataRegion|Running|root.test.g_0| 181| 200| 3| 127.0.0.1| 6670| Leader| | 2| DataRegion|Running|root.test.g_0| 181| 200| 4| 127.0.0.1| 6681|Follower| | 2| DataRegion|Running|root.test.g_0| 181| 200| 5| 127.0.0.1| 6668|Follower| | 3| DataRegion|Running|root.test.g_0| 180| 200| 1| 127.0.0.1| 6667|Follower| | 3| DataRegion|Running|root.test.g_0| 180| 200| 5| 127.0.0.1| 6668| Leader| | 3| DataRegion|Running|root.test.g_0| 180| 200| 7| 127.0.0.1| 6669|Follower| | 4| DataRegion|Running|root.test.g_0| 179| 200| 3| 127.0.0.1| 6670|Follower| | 4| DataRegion|Running|root.test.g_0| 179| 200| 4| 127.0.0.1| 6681| Leader| | 4| DataRegion|Running|root.test.g_0| 179| 200| 7| 127.0.0.1| 6669|Follower| | 5| DataRegion|Running|root.test.g_0| 179| 200| 1| 127.0.0.1| 6667| Leader| | 5| DataRegion|Running|root.test.g_0| 179| 200| 4| 127.0.0.1| 6681|Follower| | 5| DataRegion|Running|root.test.g_0| 179| 200| 5| 127.0.0.1| 6668|Follower| +--------+------------+-------+-------------+------------+----------+----------+----------+-------+--------+ Total line number = 18 It costs 0.165s