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
[skip ci] container: add pids limit parameter #6777
Conversation
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.
Could you squash your commit ?
Also the --pids-limit parameter isn't specific to podman, the same exists for docker too.
Regarding the value, I'm not sure if it's a good idea to hardcode 2048 even if it's the defaul podman value then one could have override this.
Just to clarify, @guits I'm wondering if we should just set unlimited pids for all containers. What do you think ? |
that seems to be the easiest fix. I'm just not sure what could be the impact. |
|
Just did the test on my lab using --pids-limit=0 (unlimited). The max is limited by the systemd setting
With the
When increasing
Delta between Either we go for the unlimited value or we use some kind of formula to calculate the pids-limit for the container. |
let's go with unlimited value |
@dsavineau is that really relevant to do this for all Ceph services? |
40fdbb9
to
f667934
Compare
|
jenkins test centos-container-all_in_one |
|
jenkins test centos-container-external_clients |
|
jenkins test centos-container-update |
|
jenkins test centos-non_container-all_daemons |
|
jenkins test centos-non_container-collocation |
|
jenkins test centos-non_container-lvm_osds |
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.
except the missing backslash for ceph-mgr, this looks good
The only thing needed here, is to squash your two commits and amend it to add the BZ link (like Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1987041 in the commit body) just before the signed-off line
sufficient for the default value (512) of rgw thread pool size. But if its value is increased near to the pids-limit value, it does not leave place for the other processes to spawn and run within the container and the container crashes. pids-limit set to unlimited regardless of the container engine. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1987041 Signed-off-by: Teoman ONAY <tonay@redhat.com>
8936a38
to
1412d52
Compare
|
jenkins test centos-container-all_in_one |
|
jenkins test centos-container-all_daemons |
|
jenkins test centos-container-lvm_osds |
|
jenkins test centos-container-lvm_batch |
|
jenkins test centos-container-external_clients |
|
jenkins test centos-container-all_in_one |
|
See ceph/ceph#42214 for the corresponding cephadm PR. Would be great, if someone could that PR pr over , as I'm too ignorant in this particularity. |
Description of problem:
RGW container fails to start (on a RHEL8 setup) with:
The podman default pids-limit is set to 2048.
While this value of 2048 is more than sufficient when the rgw thread pool size uses its default value of 512, when rgw thread pool size is increased up to a value near to the pids-limit value, it does not leave place for the other processes to spawn and run within the container and the container crashes.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1987041