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

Add a way to set the open files limit in systemd service #1009

Closed
bigon opened this issue Apr 9, 2021 · 1 comment · Fixed by #1044
Closed

Add a way to set the open files limit in systemd service #1009

bigon opened this issue Apr 9, 2021 · 1 comment · Fixed by #1044
Labels
enhancement New feature or request

Comments

@bigon
Copy link
Contributor

bigon commented Apr 9, 2021

Hello,

The sysconfig file contains a variable (MAXOPENFILES) that is used to set the limit for the opened files.

The problem is that under RHEL7, the hard limit set by systemd is 4096, that means that nothing can change that value to an higher value.

The .service file should be modified to allow setting this to an higher value (with probably the same default as the one in sysconfig, 8192)

@ekohl
Copy link
Member

ekohl commented May 12, 2022

Since 98f46ca you can use a systemd::dropin_file for this. We no longer manage the service file itself (since packaging ships that). Perhaps this part could be enhanced as well if there's a need for this:

systemd::dropin_file { 'puppet-overrides.conf':
unit => 'jenkins.service',
content => epp("${module_name}/jenkins-override.epp", { 'environment' => $config_hash }),
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants