This is an automated email from the ASF dual-hosted git repository.

morningman 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 4a6fd7cc30 [feature](docker) Add Docker BE computer node Interface 
(#16630)
4a6fd7cc30 is described below

commit 4a6fd7cc307fad53538376b3fa4d1cc50c121a66
Author: FreeOnePlus <54164178+freeonep...@users.noreply.github.com>
AuthorDate: Tue Feb 14 15:44:26 2023 +0800

    [feature](docker) Add Docker BE computer node Interface (#16630)
---
 docker/runtime/be/resource/init_be.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/docker/runtime/be/resource/init_be.sh 
b/docker/runtime/be/resource/init_be.sh
index 7a4e475a78..45ec74a5b1 100644
--- a/docker/runtime/be/resource/init_be.sh
+++ b/docker/runtime/be/resource/init_be.sh
@@ -121,6 +121,15 @@ docker_process_sql() {
   mysql -uroot -P9030 -h${MASTER_FE_IP} --comments "$@" 2>/dev/null
 }
 
+node_role_conf(){
+  if [[ ${NODE_ROLE} == 'computation' ]]; then
+    doris_note "this node role is computation"
+    echo "be_node_role=computation" >>${DORIS_HOME}/be/conf/be.conf
+  else
+    doris_note "this node role is mix"
+  fi
+}
+
 register_be_to_fe() {
   set +e
   # check fe status
@@ -198,6 +207,7 @@ _main() {
 
   if [ -z "$DATABASE_ALREADY_EXISTS" ]; then
     add_priority_networks $PRIORITY_NETWORKS
+    node_role_conf
   fi
 
   register_be_to_fe


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to