HsiaoWeiYun commented on issue #56300:
URL: https://github.com/apache/doris/issues/56300#issuecomment-3691936312
\\\
> > > 我最近在使用中也遇到这样的情况, 这应该是因为异常关机或者断电后,导致doris-be 再次启动过程中需要通过wal
日志来校验各个be节点的数据一致性,而这个过程有时候会比较耗时, 但是 在脚本: /opt/apache-doris/be_entrypoint.sh
中指定了 PROBE_TIMEOUT=60 ,超过这个时间, 就认为be启动失败了, 我把这里修改成 600, 就一切正常了。
> >
> >
> > 我本地按照上面這位老哥的方式修改, 目前就沒有再發生這個問題
>
> 我是docker部署的,官方的镜像有这个属性暴露出来么
我想應該是沒有, 但你可以把這個檔案複製下來改 (/opt/apache-doris/be_entrypoint.sh), 加一個volume覆蓋掉
我只是本地開發用, 這樣做就正常了, 附上我的docker-compose
doris-be:
image: apache/doris:be-3.1.0
hostname: doris-be
container_name: doris-be
ports:
- 8040:8040
- 9050:9050
environment:
- FE_SERVERS=fe1:172.20.80.2:9010
- BE_ADDR=172.20.80.3:9050
- DORIS_HEAP_SIZE=1500m
volumes:
- be_storage:/opt/apache-doris/be/storage
#https://github.com/apache/doris/issues/56300
- ./conf/doris/be_entrypoint.sh:/opt/apache-doris/be_entrypoint.sh
- ./conf/doris/be.conf:/opt/apache-doris/be/conf/be.conf
- ./logs/doris/be:/opt/apache-doris/be/log
depends_on:
doris-fe:
condition: service_healthy
networks:
doris_network:
ipv4_address: 172.20.80.3
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8040"]
interval: 30s
timeout: 10s
retries: 3
start_period: 180s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
deploy:
resources:
limits:
memory: 3g
cpus: '2'
下面是調整探針參數後的 be_entrypoint.sh
[be_entrypoint.sh](https://github.com/user-attachments/files/24341906/be_entrypoint.sh)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]