-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose-3c3d.yml
More file actions
166 lines (162 loc) · 4.84 KB
/
Copy pathdocker-compose-3c3d.yml
File metadata and controls
166 lines (162 loc) · 4.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
services:
# ConfigNode 1
iotdb-confignode-1:
image: apache/iotdb:2.0.6-confignode
container_name: iotdb-confignode-1
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data"]
interval: 3s
timeout: 5s
retries: 30
start_period: 30s
networks:
- iotdb-network
environment:
- cn_internal_address=iotdb-confignode-1
- cn_internal_port=10710
- cn_seed_config_node=iotdb-confignode-1:10710
- schema_replication_factor=3
- data_replication_factor=3
- IOTDB_JMX_OPTS=-Xms256M -Xmx256M -XX:MaxDirectMemorySize=128M
- IOTDB_JMX_OPTS=-Xms256M -Xmx256M -XX:MaxDirectMemorySize=128M
# ConfigNode 2
iotdb-confignode-2:
image: apache/iotdb:2.0.6-confignode
container_name: iotdb-confignode-2
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data"]
interval: 3s
timeout: 5s
retries: 30
start_period: 30s
depends_on:
iotdb-confignode-1:
condition: service_healthy
networks:
- iotdb-network
environment:
- cn_internal_address=iotdb-confignode-2
- cn_internal_port=10710
- cn_seed_config_node=iotdb-confignode-1:10710
- schema_replication_factor=3
- data_replication_factor=3
- IOTDB_JMX_OPTS=-Xms384M -Xmx384M -XX:MaxDirectMemorySize=192M
- CONFIGNODE_JMX_OPTSS=-Xms384M -Xmx384M -XX:MaxDirectMemorySize=192M
# ConfigNode 3
iotdb-confignode-3:
image: apache/iotdb:2.0.6-confignode
container_name: iotdb-confignode-3
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data"]
interval: 3s
timeout: 5s
retries: 30
start_period: 30s
depends_on:
iotdb-confignode-1:
condition: service_healthy
iotdb-confignode-2:
condition: service_healthy
networks:
- iotdb-network
environment:
- cn_internal_address=iotdb-confignode-3
- cn_internal_port=10710
- cn_seed_config_node=iotdb-confignode-1:10710
- schema_replication_factor=3
- data_replication_factor=3
- IOTDB_JMX_OPTS=-Xms384M -Xmx384M -XX:MaxDirectMemorySize=192M
- CONFIGNODE_JMX_OPTSS=-Xms384M -Xmx384M -XX:MaxDirectMemorySize=192M
# DataNode 1
iotdb-datanode-1:
image: apache/iotdb:2.0.6-datanode
container_name: iotdb-datanode-1
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data/datanode/system"]
interval: 10s
timeout: 60s
retries: 30
start_period: 30s
depends_on:
iotdb-confignode-1:
condition: service_healthy
ports:
- "6667:6667"
networks:
- iotdb-network
environment:
- dn_rpc_address=iotdb-datanode-1
- dn_internal_address=iotdb-datanode-1
- dn_seed_config_node=iotdb-confignode-1:10710
- dn_rpc_port=6667
- schema_replication_factor=3
- data_replication_factor=3
- IOTDB_JMX_OPTS=-Xms512M -Xmx512M -XX:MaxDirectMemorySize=256M
- CONFIGNODE_JMX_OPTS=-Xms384M -Xmx384M -XX:MaxDirectMemorySize=192M
# DataNode 2
iotdb-datanode-2:
image: apache/iotdb:2.0.6-datanode
container_name: iotdb-datanode-2
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data/datanode/system"]
interval: 10s
timeout: 60s
retries: 30
start_period: 30s
depends_on:
iotdb-confignode-1:
condition: service_healthy
iotdb-confignode-2:
condition: service_healthy
ports:
- "6668:6667"
networks:
- iotdb-network
environment:
- dn_rpc_address=iotdb-datanode-2
- dn_internal_address=iotdb-datanode-2
- dn_seed_config_node=iotdb-confignode-1:10710
- dn_rpc_port=6667
- schema_replication_factor=3
- data_replication_factor=3
- IOTDB_JMX_OPTS=-Xms512M -Xmx512M -XX:MaxDirectMemorySize=256M
- CONFIGNODE_JMX_OPTS=-Xms384M -Xmx384M -XX:MaxDirectMemorySize=192M
# DataNode 3
iotdb-datanode-3:
image: apache/iotdb:2.0.6-datanode
container_name: iotdb-datanode-3
restart: always
healthcheck:
test: ["CMD", "ls", "/iotdb/data/datanode/system"]
interval: 10s
timeout: 60s
retries: 30
start_period: 30s
depends_on:
iotdb-confignode-1:
condition: service_healthy
iotdb-confignode-2:
condition: service_healthy
iotdb-confignode-3:
condition: service_healthy
ports:
- "6669:6667"
networks:
- iotdb-network
environment:
- dn_rpc_address=iotdb-datanode-3
- dn_internal_address=iotdb-datanode-3
- dn_seed_config_node=iotdb-confignode-1:10710
- dn_rpc_port=6667
- schema_replication_factor=3
- data_replication_factor=3
- IOTDB_JMX_OPTS=-Xms512M -Xmx512M -XX:MaxDirectMemorySize=256M
- CONFIGNODE_JMX_OPTS=-Xms384M -Xmx384M -XX:MaxDirectMemorySize=192M
networks:
iotdb-network:
driver: bridge