f1024557668 commented on issue #47479:
URL: https://github.com/apache/doris/issues/47479#issuecomment-2626160777

   按照be.log里的把start_be.sh里的vm_max_count的检查注释后be启动一段时间后就自动关闭了,日志如下
   2025-01-31 10:18:26 2025-01-31T02:18:26+00:00 [Warn] [Entrypoint]: 
FE_SERVERS fe1:127.0.0.1:9010
   2025-01-31 10:18:26 2025-01-31T02:18:26+00:00 [Warn] [Entrypoint]: BE_ADDR 
127.0.0.1:9050
   2025-01-31 10:18:26 2025-01-31T02:18:26+00:00 [Note] [Entrypoint]: 
MASTER_FE_IP 127.0.0.1
   2025-01-31 10:18:26 2025-01-31T02:18:26+00:00 [Note] [Entrypoint]: 
CURRENT_BE_IP 127.0.0.1
   2025-01-31 10:18:26 2025-01-31T02:18:26+00:00 [Note] [Entrypoint]: 
CURRENT_BE_PORT 9050
   2025-01-31 10:18:26 2025-01-31T02:18:26+00:00 [Note] [Entrypoint]: 
PRIORITY_NETWORKS 127.0.0.0/24
   2025-01-31 10:18:26 2025-01-31T02:18:26+00:00 [Note] [Entrypoint]: MASTER FE 
is not started. retry.
   2025-01-31 10:18:48 2025-01-31T02:18:48+00:00 [Note] [Entrypoint]: MASTER FE 
is not started. retry.
   2025-01-31 10:19:09 2025-01-31T02:19:09+00:00 [Note] [Entrypoint]: MASTER FE 
is not started. retry.
   2025-01-31 10:19:23 fe_dec72c5d_8daf_480f_b031_5a61ea7feaea     127.0.0.1    
   9010    8030    9030    9020    -1      FOLLOWER  true    466307823       
true    true    11      2025-01-31 02:19:03     2025-01-31 02:19:15     true    
        doris-2.1.7-rc03-443e87e203       Yes
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: MASTER FE 
is started!
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: add 
priority_networks 127.0.0.0/24 to /opt/apache-doris/be/conf/be.conf
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: this node 
role is mix
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: 
============= init args ================
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: 
MASTER_FE_IP  127.0.0.1
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: 
CURRENT_BE_IP  127.0.0.1
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: BE is not 
register. retry.
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: 
CURRENT_BE_PORT  9050
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: RUN_TYPE  
ELECTION
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: Executing 
SQL: alter system add backend '127.0.0.1:9050';
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: BE 
successfully registered to FE!
   2025-01-31 10:19:23 10004       127.0.0.1       9050    -1      -1      -1   
   -1      NULL    NULL    false   false   00.000    0.000   1.000 B 0.000   
0.00 %  0.00 %  0.000   {"location" : "default"}                        
{"lastSuccessReportTabletsTime":"N/A","lastStreamLoadTime":-1,"isQueryDisabled":false,"isLoadDisabled":false}
     0
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: Verify 
that BE is registered to FE successfully
   2025-01-31 10:19:23 2025-01-31T02:19:23+00:00 [Note] [Entrypoint]: Ready to 
start BE!
   2025-01-31 10:19:24 10004       127.0.0.1       9050    -1      -1      -1   
   -1      NULL    NULL    false   false   00.000    0.000   1.000 B 0.000   
0.00 %  0.00 %  0.000   {"location" : "default"}                        
{"lastSuccessReportTabletsTime":"N/A","lastStreamLoadTime":-1,"isQueryDisabled":false,"isLoadDisabled":false}
     0
   2025-01-31 10:19:24 2025-01-31T02:19:24+00:00 [Note] [Entrypoint]: 
EntryPoint Check - Verify that BE is registered to FE successfully
   其中start_be.sh的修改如下
   if [[ "$(uname -s)" != 'Darwin' ]]; then
       # MAX_MAP_COUNT="$(cat /proc/sys/vm/max_map_count)"
       # if [[ "${MAX_MAP_COUNT}" -lt 2000000 ]]; then
       #     echo "Please set vm.max_map_count to be 2000000 under root using 
'sysctl -w vm.max_map_count=2000000'."
       #     exit 1
       # fi
   
       # if [[ "$(swapon -s | wc -l)" -gt 1 ]]; then
       #     echo "Please disable swap memory before installation."
       #     exit 1
       # fi
   fi
   docker-compose里的配置如下
   be:
       image: apache/doris:doris-be-2.1.7
       hostname: be
       environment:
         - FE_ID=1
         - FE_SERVERS=fe1:127.0.0.1:9010
         - BE_ADDR=127.0.0.1:9050
       mem_limit: 4g
       memswap_limit: 4g
       ulimits:
         memlock:
           soft: -1
           hard: -1
         nofile:
           soft: 65536
           hard: 65536


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to