add support for configuring cri-o pids_limit (#7525)

This commit is contained in:
Cristian Calin
2021-04-21 20:55:51 +03:00
committed by GitHub
parent add61868c6
commit 384d30b675
3 changed files with 19 additions and 1 deletions

View File

@@ -45,4 +45,18 @@ crio_registries_mirrors:
insecure: false
```
## Note about pids_limit
For heavily mult-threaded workloads like databases, the default of 1024 for pids-limit is too low.
This parameter controls not just the number of processes but also the amount of threads
(since a thread is technically a process with shared memory). See [cri-o#1921]
In order to increase the default `pids_limit` for cri-o based deployments you need to set the `crio_pids_limit`
for your `k8s-cluster` ansible group or per node depending on the use case.
```yaml
crio_pids_limit: 4096
```
[CRI-O]: https://cri-o.io/
[cri-o#1921]: https://github.com/cri-o/cri-o/issues/1921