-
Notifications
You must be signed in to change notification settings - Fork 229
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 $server_max_open_files #671
Conversation
This comment has been minimized.
This comment has been minimized.
60120f2
to
07a2dc3
Compare
07a2dc3
to
169f74b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I've tested on EL7 (systemd dropin_file implementation). Works great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you're adding systemd as a soft dependency, could you describe this in README.md
?
169f74b
to
51c36a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add an acceptance test as well?
51c36a9
to
ea1ecb3
Compare
Done! :)
Not really sure where to add it. Can you point me to a good place for it? :) |
This commit implements the $server_max_open_files parameter which allows the user to configure the max open file descriptor limit for Puppetserver. Fixes #theforemanGH-670.
ea1ecb3
to
597aac3
Compare
it_behaves_like 'a idempotent resource' | ||
|
||
# pgrep -f java.*puppetserver would be better. But i cannot get it to work. Shellwords.escape() seems to break something | ||
describe command("grep '^Max open files' /proc/`cat /var/run/puppetlabs/puppetserver/puppetserver.pid`/limits"), :sudo => true do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may be able to parse this via systemctl status puppetserver
as well. Both the main pid as the limit. On the other hand, this is a real test on the result so I'm fine with this.
Thanks! |
This commit implements the $server_max_open_files parameter which allows
the user to configure the max open file descriptor limit for
Puppetserver.
Fixes #670.