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

File descriptor limit is not set in systemd unit file by default. #349

Closed
stasiek opened this issue Mar 4, 2020 · 2 comments · Fixed by #396
Closed

File descriptor limit is not set in systemd unit file by default. #349

stasiek opened this issue Mar 4, 2020 · 2 comments · Fixed by #396

Comments

@stasiek
Copy link

stasiek commented Mar 4, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Module version: 5.0

On a clean Debian installation /etc/security/limits.conf file descriptor limit can be set to whatever. When starting, Redis tries to ensure it can get 10k descriptors and crashes if it can't.

This module creates it's unit files for systemd, which is awesome, but there's no way to set the limit in the unit file which is how we should be doing in systemd-land.

So please can You make it possible to add LimitNOFILE= to the unit file below User and Group setting?

@ekohl
Copy link
Member

ekohl commented May 5, 2020

#276 also reported this. Could you come up with a patch?

@ekohl ekohl linked a pull request Apr 27, 2021 that will close this issue
@ekohl
Copy link
Member

ekohl commented Apr 27, 2021

Fixed in 0f930aa

@ekohl ekohl closed this as completed Apr 27, 2021
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 a pull request may close this issue.

2 participants