Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

低性能机器上docker容器一直反复重启 #61

Open
XY0797 opened this issue Jul 8, 2024 · 0 comments
Open

低性能机器上docker容器一直反复重启 #61

XY0797 opened this issue Jul 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@XY0797
Copy link
Contributor

XY0797 commented Jul 8, 2024

希望作者修改下docker-compose.yml

hoj-autohealth:字段添加环境变量

    environment:
      - AUTOHEAL_CONTAINER_LABEL=all

改成

    environment:
      - AUTOHEAL_CONTAINER_LABEL=all
      - AUTOHEAL_START_PERIOD=300

也就是5分钟后再开始检查

否则如果使用J1900 CPU或类似性能的小主机部署,启动Nacos到一半就会直接被认为不健康然后杀死容器,进而导致服务完全不可用

@HimitZH HimitZH added the enhancement New feature or request label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants