-
Notifications
You must be signed in to change notification settings - Fork 14
Container limits #1327
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
base: main
Are you sure you want to change the base?
Container limits #1327
Conversation
- Improved cgroup support, including subgroup delegation. - Drop previously backported patch. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Add resource-limit and resource-usage containers to YANG model. Podman, and later conmon, enforce CPU and memory limits in a delegated cgroupsv2 hierarchy managed by Finit. Resource usage is queried from 'podman inspect', which has more nodes than what is currently possible to limit. Requires Finit 4.15, or later. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
mattiaswal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look sine 👍 just a minor comment
| } | ||
| } | ||
|
|
||
| container resource-limit { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've checked this now, the indentation of the additions in this file match the rest of this file. Maybe you saw something on in the diff view due to how GitHub displays tabs? This came up in an earlier review too and then I found that GitHub has changed the default from 8 to 4. I've set up my profile to use 8 char tabs: https://github.com/settings/appearance#tab-size-preference
Our YANG files are usually indented with leading spaces (2 per level), and for each 8 spaces they are replaced by a tab character. This is what Emacs yang-mode does.
Description
Add support for configurable CPU and memory limits on containers.
Checklist
Tick relevant boxes, this PR is-a or has-a: