Skip to content
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

Implement docker ulimits #825

Merged
merged 4 commits into from Mar 20, 2022
Merged

Implement docker ulimits #825

merged 4 commits into from Mar 20, 2022

Conversation

LimeHat
Copy link
Member

@LimeHat LimeHat commented Mar 19, 2022

Fix #824

In this implementation both soft & hard limits will be set to rlimit.max (or 2^20, whichever is lower) because by default unix.rlimit returns the limits of the current process (containerlab binary in this case).
I assume that should be good enough, but if we encounter any issues (someone runs clab on a system with a very low rlimit.max? which is unlikely) we can rework the logic.

@hellt
Copy link
Member

hellt commented Mar 20, 2022

thanks @LimeHat !

@hellt hellt merged commit fe1d7a8 into srl-labs:main Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pass host's open files ulimit inside a container
2 participants