Skip to content

Commit cfb244b

Browse files
authored
Add comments in docker-compose for startup hang (apache#16342)
1 parent 6fb776c commit cfb244b

File tree

5 files changed

+63
-5
lines changed

5 files changed

+63
-5
lines changed

docker/src/main/DockerCompose/docker-compose-ainode.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,11 @@ services:
4343
volumes:
4444
- ainode-data:/ainode/data
4545
- ./logs/ainode:/ainode/logs
46-
# - ./lib/ainode:/ainode/lib # Uncomment for rolling upgrade
46+
# - ./lib/ainode:/ainode/lib # Uncomment for rolling upgrade
47+
# Note: Some environments set an extremely high container nofile limit (~2^30 = 1073741824).
48+
# This can make the startup step "Checking whether the ports are already occupied..." appear to hang (lsof slow).
49+
# If you see that line for a long time, lower the nofile limit by uncommenting below:
50+
# ulimits:
51+
# nofile:
52+
# soft: 1048576
53+
# hard: 1048576

docker/src/main/DockerCompose/docker-compose-cluster-1c1d1a.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ services:
4141
volumes:
4242
- ./data/iotdb:/iotdb/data
4343
- ./logs/iotdb:/iotdb/logs
44-
# Enable this configuration for kylinOS
44+
# Note: Some environments set an extremely high container nofile limit (~2^30 = 1073741824).
45+
# This can make the startup step "Checking whether the ports are already occupied..." appear to hang (lsof slow).
46+
# If you see that line for a long time, lower the nofile limit by uncommenting below:
4547
# ulimits:
4648
# nofile:
47-
# soft: 20000
48-
# hard: 20000
49+
# soft: 1048576
50+
# hard: 1048576
4951
networks:
5052
iotdb:
5153
# ipv4_address: 127.0.0.1
@@ -62,6 +64,13 @@ services:
6264
networks:
6365
iotdb:
6466
# ipv4_address: 127.0.0.1
67+
# Note: Some environments set an extremely high container nofile limit (~2^30 = 1073741824).
68+
# This can make the startup step "Checking whether the ports are already occupied..." appear to hang (lsof slow).
69+
# If you see that line for a long time, lower the nofile limit by uncommenting below:
70+
# ulimits:
71+
# nofile:
72+
# soft: 1048576
73+
# hard: 1048576
6574

6675
networks:
6776
iotdb:

docker/src/main/DockerCompose/docker-compose-cluster-1c2d.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ services:
3434
networks:
3535
iotdb:
3636
ipv4_address: 172.18.0.2
37+
# Note: Some environments set an extremely high container nofile limit (~2^30 = 1073741824).
38+
# This can make the startup step "Checking whether the ports are already occupied..." appear to hang (lsof slow).
39+
# If you see that line for a long time, lower the nofile limit by uncommenting below:
40+
# ulimits:
41+
# nofile:
42+
# soft: 1048576
43+
# hard: 1048576
3744

3845
iotdb-datanode1:
3946
image: apache/iotdb:1.1.0-datanode
@@ -56,6 +63,13 @@ services:
5663
networks:
5764
iotdb:
5865
ipv4_address: 172.18.0.3
66+
# Note: Some environments set an extremely high container nofile limit (~2^30 = 1073741824).
67+
# This can make the startup step "Checking whether the ports are already occupied..." appear to hang (lsof slow).
68+
# If you see that line for a long time, lower the nofile limit by uncommenting below:
69+
# ulimits:
70+
# nofile:
71+
# soft: 1048576
72+
# hard: 1048576
5973

6074
iotdb-datanode2:
6175
image: apache/iotdb:1.1.0-datanode
@@ -76,6 +90,13 @@ services:
7690
networks:
7791
iotdb:
7892
ipv4_address: 172.18.0.4
93+
# Note: Some environments set an extremely high container nofile limit (~2^30 = 1073741824).
94+
# This can make the startup step "Checking whether the ports are already occupied..." appear to hang (lsof slow).
95+
# If you see that line for a long time, lower the nofile limit by uncommenting below:
96+
# ulimits:
97+
# nofile:
98+
# soft: 1048576
99+
# hard: 1048576
79100

80101
networks:
81102
iotdb:

docker/src/main/DockerCompose/docker-compose-host-3c3d.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ services:
3535
- ./data/confignode:/iotdb/data
3636
- ./logs/confignode:/iotdb/logs
3737
network_mode: "host"
38+
# Note: Some environments set an extremely high container nofile limit (~2^30 = 1073741824).
39+
# This can make the startup step "Checking whether the ports are already occupied..." appear to hang (lsof slow).
40+
# If you see that line for a long time, lower the nofile limit by uncommenting below:
41+
# ulimits:
42+
# nofile:
43+
# soft: 1048576
44+
# hard: 1048576
3845

3946
iotdb-datanode:
4047
image: apache/iotdb:1.1.0-datanode
@@ -55,3 +62,10 @@ services:
5562
- ./data/datanode:/iotdb/data/
5663
- ./logs/datanode:/iotdb/logs/
5764
network_mode: "host"
65+
# Note: Some environments set an extremely high container nofile limit (~2^30 = 1073741824).
66+
# This can make the startup step "Checking whether the ports are already occupied..." appear to hang (lsof slow).
67+
# If you see that line for a long time, lower the nofile limit by uncommenting below:
68+
# ulimits:
69+
# nofile:
70+
# soft: 1048576
71+
# hard: 1048576

docker/src/main/DockerCompose/docker-compose-standalone.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ services:
4444
networks:
4545
iotdb:
4646
ipv4_address: 172.18.0.6
47+
# Note: Some environments set an extremely high container nofile limit (~2^30 = 1073741824).
48+
# This can make the startup step "Checking whether the ports are already occupied..." appear to hang (lsof slow).
49+
# If you see that line for a long time, lower the nofile limit by uncommenting below:
50+
# ulimits:
51+
# nofile:
52+
# soft: 1048576
53+
# hard: 1048576
4754

4855
networks:
4956
iotdb:
50-
external: true
57+
external: true

0 commit comments

Comments
 (0)