Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
384d30b6
Unverified
Commit
384d30b6
authored
3 years ago
by
Cristian Calin
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add support for configuring cri-o pids_limit (#7525)
parent
add61868
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/cri-o.md
+14
-0
14 additions, 0 deletions
docs/cri-o.md
roles/container-engine/cri-o/defaults/main.yml
+4
-0
4 additions, 0 deletions
roles/container-engine/cri-o/defaults/main.yml
roles/container-engine/cri-o/templates/crio.conf.j2
+1
-1
1 addition, 1 deletion
roles/container-engine/cri-o/templates/crio.conf.j2
with
19 additions
and
1 deletion
docs/cri-o.md
+
14
−
0
View file @
384d30b6
...
...
@@ -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
This diff is collapsed.
Click to expand it.
roles/container-engine/cri-o/defaults/main.yml
+
4
−
0
View file @
384d30b6
...
...
@@ -81,3 +81,7 @@ crio_add_repos: true
# skopeo need for save/load images when download_run_once=true
skopeo_packages
:
-
"
skopeo"
# Configure the cri-o pids limit, increase this for heavily multi-threaded workloads
# see https://github.com/cri-o/cri-o/issues/1921
crio_pids_limit
:
1024
This diff is collapsed.
Click to expand it.
roles/container-engine/cri-o/templates/crio.conf.j2
+
1
−
1
View file @
384d30b6
...
...
@@ -202,7 +202,7 @@ default_mounts = [
#default_mounts_file = ""
# Maximum number of processes allowed in a container.
pids_limit =
1024
pids_limit =
{{ crio_pids_limit }}
# Maximum sized allowed for the container log file. Negative numbers indicate
# that no size limit is imposed. If it is positive, it must be >= 8192 to
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment