已合并
feat(sandbox): enforce sandbox memory limits during creation #194
ytluo创建于 22 天前
feat(sandbox): enforce sandbox memory limits during creation #194
已合并
ytluo创建于 22 天前
ytluo
22 天前

当前PR是否有AI参与:

[x] 否

[ ] 是
__1. AI Agent 平台:
__2. AI 模型:
__3. Prompt上下文 :

参考:openEuler社区《生成式AI工具使用与开源贡献政策》

PR功能描述 / 为什么需要这个合入**:

当前沙箱创建在内存接近耗尽时没有任何保护机制,仍然在尝试创建,很可能会导致系统崩溃或重要进程oom killed。
PR 修改内容包括:
 - 加入配置项:memory_overcommit_ratio 内存超分比 和 memory_limit_mb 沙箱总内存预算;
 - 使用原子计数器统计已使用沙箱的内存,包括启动中和已暂停,在沙箱删除或启动失败回收时释放其内存统计;
 - 沙箱启动前,比较(usedMB+requestedMB) 和 (overcommit_ratio*limit_mb),如不足返回失败。

该PR关联的issue

(格式为fixes #<issue号>, 或者resolves #<issue号>): fixes #
#203

希望检视人员了解:

likedislike
Pull Request已成功合入, 合并人@openeuler-ci-bot
(感谢 ytluo 的贡献)
Yytluo
22 天前 创建了 pull request,commit 36b05079
openeuler-ci-botopeneuler-ci-bot成员
22 天前 将weibaohui,yangzhao_kl,jimmieme,duguhaotian,wonleing,zmr_2020,gaodaweiky,lu-wei-army,zhaoyifan28设为审查人
openeuler-ci-botopeneuler-ci-bot成员
22 天前 添加了label:sig/sig-CloudNative
openeuler-ci-bot
openeuler-ci-bot成员
22 天前 评论:

Welcome To openEuler Community

Hey @ytluo , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.

Contact Guide

If you have any questions, please contact the SIG: sig-CloudNative ,
and any of the maintainers: @duguhaotian, @gaodaweiky, @jimmieme, @lu-wei-army, @weibaohui, @wonleing, @yangzhao_kl, @zhaoyifan28, @zmr_2020 ,
and any of the committers: @Yekelu .

likedislike
openeuler-ci-botopeneuler-ci-bot成员
22 天前 添加了label:openeuler-cla/yes
此处折叠了78条消息 查看更多
openeuler-ci-bot
openeuler-ci-bot成员
9 天前 评论:

CLA Signature Pass

ytluo, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
zhaoyifan28成员
9 天前 评论:

/lgtm
/approve

likedislike
openeuler-ci-botopeneuler-ci-bot成员
9 天前 添加了label:approvedlgtm
openeuler-ci-bot
openeuler-ci-bot成员
9 天前 评论:

Review Code Feedback

  • The label lgtm, approved was added to this pull request. It means that zhaoyifan28 reviewed the code changes. 👋
Tips
  • If this pull request is not merged while all conditions are met, comment /check-pr to try again. 😄
likedislike
openeuler-ci-botopeneuler-ci-bot成员
9 天前 合入了pull request,合并节点 SHA:4dd47961dc0d90e7ad955479bfbbf0de7a8516b0