Hi,

Some update:

1. in the cluster module, set the default number of nodes as 1, and the
default replica number as 1.

2. !IMPORTANT! users can skip setting the value of `internal_ip`. If
`internal_ip` is commented, then the hostname of the server will be used
rather than `127.0.0.1` to be used.

After the Update 2,  now all nodes can use the same configuration file,
which will be very convenient for cluster deployment.


Besides, using docker-compose and TestContainer, we are able to run E2E
tests. So, in the later PRs related the cluster module, you must add ITs to
cover your modifications.

1. add a new module `testcontainer`. The module will be added if your
PC/Mac has installed Docker.

2. the `testcontainer` module will build two docker images:
`apache/iotdb:maven-development` and
`apache/iotdb:cluster-maven-development` when running `mvn
pre-integration-test`

3. Two E2E test (end with *IT.java) with TestContainer framework examples
are provided, in `testcontainer/src/test/java/`, while one is for single
node and another is for the cluster with 3 nodes.

4. To disable the `testcontainer` module, use `-P !testcontainer` in your
`mvn` command.

JIRA and PR:
[1] https://issues.apache.org/jira/browse/IOTDB-1310
[2] https://github.com/apache/iotdb/pull/3024

Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University

 黄向东
清华大学 软件学院

Reply via email to