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

[FEATURE] 机器重启,1panle安装的软件可以延迟启动 #5028

Open
9a6c opened this issue May 16, 2024 · 4 comments
Open

[FEATURE] 机器重启,1panle安装的软件可以延迟启动 #5028

9a6c opened this issue May 16, 2024 · 4 comments
Assignees

Comments

@9a6c
Copy link

9a6c commented May 16, 2024

1Panel 版本

最新

请描述您的需求或者改进建议

我的小机器(2核2g),安装了一个AI的应用(cpu %99占用), 导致ssh连接不上, 在阿里云后台重启,还是无法连接, 1panle网页也无响应。
希望机器重启后, 安装的应用可以延迟一定时间在启动安装的应用。防止小机器无法ssh连接。

请描述你建议的实现方案

1.机器重启,1panle安装的软件可以延迟启动。最好是有个状态可以查看(会延迟启动的应用)
2.cpu高占用的情况下,1panel网页可以正常使用。目前运气好的时候可以勉强登录进去,但是无法进行操作(各接口超时)

附加信息

No response

@9a6c 9a6c changed the title [FEATURE] 服务器重启后, 安装的应用可以延迟一定时间在启动(docker延迟启动应用) [FEATURE] 机器重启,1panle安装的软件可以延迟启动 May 16, 2024
@9a6c
Copy link
Author

9a6c commented May 16, 2024

image
更新重启规则会导致容器重新启动,即:已经关闭的应用会重启。

@wanghe-fit2cloud
Copy link
Member

1Panel 应用商店中的应用均采用容器化方案部署。
因为 docker 服务是开机自启,所以应用的 重启规则 默认为 一直重启 时则会出现上述情况。

更新重启规则会导致容器重新启动 这个问题,我们会尝试在后续版本优化。

@9a6c
Copy link
Author

9a6c commented May 24, 2024

在安装应用的时候设置启动规则, 这个是否合理或方便实现呢?

@wanghe-fit2cloud
Copy link
Member

在安装应用的时候设置启动规则, 这个是否合理或方便实现呢?

如果不想使用默认规则那就需要你手动设置,1Panel 自身也是支持的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants