Skip to content

Commit

Permalink
[improvement](doris compose) improve start be container speed (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
yujun777 authored Nov 22, 2023
1 parent b541de7 commit 1441387
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker/runtime/doris-compose/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ RUN curl -f https://repo1.maven.org/maven2/org/jacoco/jacoco/$jacoco_version/jac
mkdir /jacoco && \
unzip jacoco.zip -d /jacoco

# in docker, run 'chmod 755 doris_be' first time cost 1min, remove it.
RUN sed -i 's/\<chmod\>/echo/g' /opt/apache-doris/be/bin/start_be.sh
1 change: 1 addition & 0 deletions docker/runtime/doris-compose/resource/init_be.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ main() {
if [ -n $LLVM_PROFILE_FILE_PREFIX ]; then
export LLVM_PROFILE_FILE="${LLVM_PROFILE_FILE_PREFIX}-$(date +%s)"
fi
health_log "run start_be.sh"
bash $DORIS_HOME/bin/start_be.sh --daemon

wait_process
Expand Down
2 changes: 1 addition & 1 deletion docker/runtime/doris-compose/resource/init_fe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ add_frontend() {

output=$(mysql -P $FE_QUERY_PORT -h $MASTER_FE_IP -u root --execute "ALTER SYSTEM ADD FOLLOWER '$MY_IP:$FE_EDITLOG_PORT';" 2>&1)
res=$?
health_log "$output"
health_log "${output}\n"
[ $res -eq 0 ] && break
(echo $output | grep "frontend already exists") && break
sleep 1
Expand Down

0 comments on commit 1441387

Please sign in to comment.