Skip to content

Commit 51eecd0

Browse files
committed
[dingo-docker] update configuration and script about dingo
1 parent 5c6ae39 commit 51eecd0

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

container/docker-compose/docker-compose.local.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: '2.2'
33
services:
44
coordinator1:
5-
image: dingodb.ubuntu:v0.3.0
5+
image: dingodb.ubuntu:v0.5.0
66
hostname: coordinator1
77
container_name: coordinator1
88
networks:
@@ -12,7 +12,7 @@ services:
1212
DINGO_HOSTNAME: coordinator1
1313

1414
coordinator2:
15-
image: dingodb.ubuntu:v0.3.0
15+
image: dingodb.ubuntu:v0.5.0
1616
hostname: coordinator2
1717
container_name: coordinator2
1818
networks:
@@ -22,7 +22,7 @@ services:
2222
DINGO_HOSTNAME: coordinator2
2323

2424
coordinator3:
25-
image: dingodb.ubuntu:v0.3.0
25+
image: dingodb.ubuntu:v0.5.0
2626
hostname: coordinator3
2727
container_name: coordinator3
2828
networks:
@@ -32,7 +32,7 @@ services:
3232
DINGO_HOSTNAME: coordinator3
3333

3434
executor1:
35-
image: dingodb.ubuntu:v0.3.0
35+
image: dingodb.ubuntu:v0.5.0
3636
hostname: executor1
3737
container_name: executor1
3838
ports:
@@ -48,7 +48,7 @@ services:
4848
DINGO_HOSTNAME: executor1
4949

5050
executor2:
51-
image: dingodb.ubuntu:v0.3.0
51+
image: dingodb.ubuntu:v0.5.0
5252
hostname: executor2
5353
container_name: executor2
5454
ports:
@@ -64,7 +64,7 @@ services:
6464
DINGO_HOSTNAME: executor2
6565

6666
executor3:
67-
image: dingodb.ubuntu:v0.3.0
67+
image: dingodb.ubuntu:v0.5.0
6868
hostname: executor3
6969
container_name: executor3
7070
ports:
@@ -80,7 +80,7 @@ services:
8080
DINGO_HOSTNAME: executor3
8181

8282
web:
83-
image: dingodb.ubuntu:v0.3.0
83+
image: dingodb.ubuntu:v0.5.0
8484
hostname: web
8585
container_name: web
8686
ports:

container/images/templates/bin/start-driver.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717

1818
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
1919
JAR_PATH=$(find $ROOT -name dingo-cli-*.jar)
20+
NET_JAR_PATH=$(find $ROOT -name dingo-net-*.jar)
2021

2122
java ${JAVA_OPTS} \
2223
-Dlogback.configurationFile=file:${ROOT}/conf/logback-driver.xml \
23-
-classpath ${JAR_PATH} \
24+
-classpath ${JAR_PATH}:${NET_JAR_PATH} \
2425
io.dingodb.cli.Tools driver \
2526
--config ${ROOT}/conf/client.yaml \
2627
$@ > ${ROOT}/log/driver.out

container/images/templates/bin/start-executor.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
2020
JAR_PATH=$(find $ROOT -name dingo-*-executor-*.jar)
2121
STORE_JAR_PATH=$(find $ROOT -name dingo-store*.jar)
22+
NET_JAR_PATH=$(find $ROOT -name dingo-net-*.jar)
2223

2324
java ${JAVA_OPTS} \
2425
-Dlogback.configurationFile=file:${ROOT}/conf/logback-executor.xml \
25-
-classpath ${JAR_PATH}:${STORE_JAR_PATH} \
26+
-classpath ${JAR_PATH}:${STORE_JAR_PATH}:${NET_JAR_PATH} \
2627
io.dingodb.server.executor.Starter \
2728
--config ${ROOT}/conf/executor.yaml \
2829
> ${ROOT}/log/executor.out

container/images/templates/bin/start.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ COORDINATOR_JAR_PATH=$(find $ROOT -name dingo-*-coordinator-*.jar)
2020
EXECUTOR_JAR_PATH=$(find $ROOT -name dingo-*-executor-*.jar)
2121
DRIVER_JAR_PATH=$(find $ROOT -name dingo-cli-*.jar)
2222
WEB_JAR_PATH=$(find $ROOT -name dingo-web*.jar)
23+
NET_JAR_PATH=$(find $ROOT -name dingo-net-*.jar)
2324

2425
ROLE=$DINGO_ROLE
2526
HOSTNAME=$DINGO_HOSTNAME
@@ -38,7 +39,7 @@ if [[ $ROLE == "coordinator" ]]
3839
then
3940
java ${JAVA_OPTS} \
4041
-Dlogback.configurationFile=file:${ROOT}/conf/logback-coordinator.xml \
41-
-classpath ${COORDINATOR_JAR_PATH} \
42+
-classpath ${COORDINATOR_JAR_PATH}:${NET_JAR_PATH} \
4243
io.dingodb.server.coordinator.Starter \
4344
--config ${ROOT}/conf/coordinator.yaml \
4445
> ${ROOT}/log/coordinator.out

container/images/templates/conf/coordinator.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ exchange:
55
port: 19181
66
server:
77
dataPath: /opt/dingo/coordinator
8-
raft:
9-
port: 9181
10-
initRaftSvrList: coordinator3:9181,coordinator2:9181,coordinator1:9181
8+
servers: coordinator3:19181,coordinator2:19181,coordinator1:19181
119
schedule:
1210
autoSplit: true

container/images/templates/conf/executor.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,4 @@ server:
88
dataPath: /opt/dingo/executor/meta
99
store:
1010
dbPath: /opt/dingo/executor/raftDb
11-
raft:
12-
port: 9191
13-
raftPath: /opt/dingo/executor/raftLog
1411
collectStatsInterval: 5

roles/dingo/templates/executor.yaml.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ server:
99
monitorPort: {{ dingo_executor_http_monitor_port }}
1010
store:
1111
dbPath: {{ dingo_executor_raft_db_path }}
12+
dbRocksOptionsFile: {{ dingo_home }}/conf/db_rocks.ini
13+
logRocksOptionsFile: {{ dingo_home }}/conf/log_rocks.ini
1214
raft:
1315
port: {{ dingo_executor_raft_port }}
1416
raftPath: {{ dingo_executor_raft_log_path }}

0 commit comments

Comments
 (0)