This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 1441387e5b3 [improvement](doris compose) improve start be container
speed (#27368)
1441387e5b3 is described below
commit 1441387e5b3e7c65d3a6a221161a8d711dcd4979
Author: yujun <[email protected]>
AuthorDate: Wed Nov 22 11:04:04 2023 +0800
[improvement](doris compose) improve start be container speed (#27368)
---
docker/runtime/doris-compose/Dockerfile | 2 ++
docker/runtime/doris-compose/resource/init_be.sh | 1 +
docker/runtime/doris-compose/resource/init_fe.sh | 2 +-
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/docker/runtime/doris-compose/Dockerfile
b/docker/runtime/doris-compose/Dockerfile
index 50f03299b08..11a3c465709 100644
--- a/docker/runtime/doris-compose/Dockerfile
+++ b/docker/runtime/doris-compose/Dockerfile
@@ -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
diff --git a/docker/runtime/doris-compose/resource/init_be.sh
b/docker/runtime/doris-compose/resource/init_be.sh
index dc356d27398..4d7b9780c30 100755
--- a/docker/runtime/doris-compose/resource/init_be.sh
+++ b/docker/runtime/doris-compose/resource/init_be.sh
@@ -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
diff --git a/docker/runtime/doris-compose/resource/init_fe.sh
b/docker/runtime/doris-compose/resource/init_fe.sh
index 2d55547241a..1762f10d1fa 100755
--- a/docker/runtime/doris-compose/resource/init_fe.sh
+++ b/docker/runtime/doris-compose/resource/init_fe.sh
@@ -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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]