-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add support for PidsLimit in quadlet #19955
Conversation
The default limit on number of processes within the container is 1024. This is far too low for QM. Selecting 10000 seems like a better number but really this needs to be set by the final distributor of the OS. Requires containers/podman#19955 to be in Podman. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
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.
LGTM
### `PidsLimit=` | ||
|
||
Tune the container's pids limit. | ||
This is equivalent to the Podman `--pids-limit` option |
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.
This is equivalent to the Podman `--pids-limit` option | |
This is equivalent to the Podman `--pids-limit` option. |
pkg/systemd/quadlet/quadlet.go
Outdated
pidsLimit, _ := container.Lookup(ContainerGroup, KeyPidsLimit) | ||
if len(pidsLimit) > 0 { | ||
podman.add("--pids-limit", pidsLimit) | ||
} |
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.
pidsLimit, _ := container.Lookup(ContainerGroup, KeyPidsLimit) | |
if len(pidsLimit) > 0 { | |
podman.add("--pids-limit", pidsLimit) | |
} | |
pidsLimit, ok := container.Lookup(ContainerGroup, KeyPidsLimit) | |
if ok && len(pidsLimit) > 0 { | |
podman.add("--pids-limit", pidsLimit) | |
} |
QM needs to be able to specify the maximum number of PIDs within the QM environment to ensure FFI. Picking a total of 10,000 Pids might be a rasonable constraint on the QM. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan, Yarboa, ygalblum The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
Past the cutoff, but LGTM fwiw
QM needs to be able to specify the maximum number of PIDs within the QM environment to ensure FFI.
Picking a total of 10,000 Pids might be a rasonable constraint on the QM.
Does this PR introduce a user-facing change?