bfenetworks / bfe

A modern layer 7 load balancer from baidu
https://www.bfe-networks.net
Apache License 2.0
6.12k stars 946 forks source link

Docker image suspend in startup. #1048

Closed caffeine-cn closed 11 hours ago

caffeine-cn commented 2 years ago

Describe the bug follow the install instruction https://www.bfe-networks.net/zh_cn/installation/install_using_docker/ docker run suspend in sample code
docker run -p 8080:8080 -p 8443:8443 -p 8421:8421 bfenetworks/bfe with information maxprocs: Leaving GOMAXPROCS=56: CPU quota undefined

To Reproduce install with docker with sample code docker run -p 8080:8080 -p 8443:8443 -p 8421:8421 bfenetworks/bfe

Expected behavior docker run successful.

zhugelianglongming commented 2 years ago

It seems like Golang program in your docker environment runs with too much logical processors.

You can try to set GOMAXPROCS in docker env to be likes cores for container(cpu quota). run -p 8080:8080 -p 8443:8443 -p 8421:8421 -e GOMAXPROCS="${expected_value}" bfenetworks/bfe

More: 关于GOMAXPROCS的设置

liangyuanpeng commented 1 year ago

--