Skip to content

Commit 6ecba44

Browse files
committed
[dingo-deploy] update deploy script for dingo-v0.5.0
1 parent 7ca23c3 commit 6ecba44

File tree

6 files changed

+52
-16
lines changed

6 files changed

+52
-16
lines changed

roles/dingo/templates/client.yaml.j2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@ exchange:
55
port: 8765
66
client:
77
coordinatorExchangeSvrList: {{ dingo_coordinator_exchange_connection_list }}
8+
security:
9+
cipher:
10+
keyPath: {{ dingo_home }}/conf/dingodb.jks
11+
keyPass: dingodb
12+
storePass: dingodb
13+
alias: dingodb
14+
issuer: dingo
15+
verify: true

roles/dingo/templates/coordinator.yaml.j2

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ exchange:
55
port: {{ dingo_coordinator_exchange_port }}
66
server:
77
dataPath: {{ dingo_coordinator_meta_path }}
8-
raft:
9-
port: {{ dingo_coordinator_raft_port }}
10-
initRaftSvrList: {{ dingo_coordinator_raft_connection_list }}
11-
schedule:
12-
autoSplit: true
13-
defaultAutoMaxSize: 1073741824
14-
defaultAutoMaxCount: 1000000
8+
servers: {{ dingo_coordinator_exchange_connection_list }}
159
monitorPort: {{ dingo_coordinator_http_monitor_port }}
10+
security:
11+
cipher:
12+
keyPath: {{ dingo_home }}/conf/dingodb.jks
13+
keyPass: dingodb
14+
storePass: dingodb
15+
alias: dingodb
16+
issuer: dingo
17+
verify: true

roles/dingo/templates/executor.yaml.j2

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,34 @@ 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
14-
raft:
15-
port: {{ dingo_executor_raft_port }}
16-
raftPath: {{ dingo_executor_raft_log_path }}
17-
collectStatsInterval: 120
12+
dcfConfiguration:
13+
tcBlockSize: 131072
14+
tcBlockCacheSize: 67108864
15+
cfArenaBlockSize: 67108864
16+
cfMinWriteBufferNumberToMerge: 4
17+
cfMaxWriteBufferNumber: 2
18+
cfMaxCompactionBytes: 134217728
19+
cfWriteBufferSize: 67108864
20+
cfFixedLengthPrefixExtractor: 8
21+
cfMaxBytesForLevelBase: 134217728
22+
cfTargetFileSizeBase: 67108864
23+
icfConfiguration:
24+
tcBlockSize: 131072
25+
tcBlockCacheSize: 67108864
26+
cfArenaBlockSize: 67108864
27+
cfMinWriteBufferNumberToMerge: 4
28+
cfMaxWriteBufferNumber: 3
29+
cfMaxCompactionBytes: 134217728
30+
cfWriteBufferSize: 67108864
31+
cfFixedLengthPrefixExtractor: 8
32+
cfMaxBytesForLevelBase: 134217728
33+
cfTargetFileSizeBase: 67108864
34+
collectStatsInterval: 5
35+
security:
36+
cipher:
37+
keyPath: {{ dingo_home }}/conf/dingodb.jks
38+
keyPass: dingodb
39+
storePass: dingodb
40+
alias: dingodb
41+
issuer: dingo
42+
verify: true

roles/dingo/templates/start-coordinator.sh.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818

1919
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
2020
JAR_PATH=$(find $ROOT -name dingo-*-coordinator-*.jar)
21+
NET_JAR_PATH=$(find $ROOT -name dingo-net-*.jar)
2122
JAVA_OPTS="-Xms1g -Xmx1g -XX:+AlwaysPreTouch -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError"
2223

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

roles/dingo/templates/start-executor.sh.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
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
JAVA_OPTS="-Xms1g -Xmx1g -XX:+AlwaysPreTouch -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError"
2324

2425
nohup {{ jdk_home }}/bin/java ${JAVA_OPTS} \
2526
-Dlogback.configurationFile=file:${ROOT}/conf/logback-executor.xml \
26-
-classpath ${JAR_PATH}:${STORE_JAR_PATH} \
27+
-classpath ${JAR_PATH}:${NET_JAR_PATH} \
2728
io.dingodb.server.executor.Starter \
2829
--config ${ROOT}/conf/executor.yaml \
2930
> {{ dingo_log_path }}/executor.out &

roles/dingo/templates/start-web.sh.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ nohup {{ jdk_home }}/bin/java ${JAVA_OPTS} \
2424
-Dlogback.configurationFile=file:${ROOT}/conf/logback-web.xml \
2525
-jar ${JAR_PATH} \
2626
--spring.config.location=${ROOT}/conf/application.yaml \
27-
io.dingodb.web.DingoApplication \
2827
> {{ dingo_log_path }}/dingo-web.out &

0 commit comments

Comments
 (0)