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

These changes add in ulimit for file descriptors. #57

Closed
wants to merge 2 commits into from

Conversation

solarce
Copy link
Contributor

@solarce solarce commented Sep 22, 2014

These changes add in ulimit for file descriptors.

For #56

@dpkp
Copy link
Contributor

dpkp commented Sep 23, 2014

+1 -- this is a very important config for running in prod.

@mthssdrbrg
Copy link
Contributor

We usually have quite obscene limits on our servers by default, so I haven't even considered this before, but I think it would be a great addition.

However, I feel like this should be an optional setting, thus the default value should be nil and just wrap the lines in the init scripts with an if statement, for the people that would rather use their system defaults.

@solarce
Copy link
Contributor Author

solarce commented Sep 23, 2014

That makes sense, I'll rework that tonight

It'll only apply if you set it.
For sous-chefs#56.
@solarce
Copy link
Contributor Author

solarce commented Sep 24, 2014

I've tested the upstart bit on ubuntu 12.04 and it worked for me

    - update content in file /etc/init/kafka.conf from cf249c to 9715a7
        --- /etc/init/kafka.conf    2014-09-24 16:49:19.891930063 +0000
        +++ /tmp/chef-rendered-template20140924-25305-mtnzbn    2014-09-24 16:50:41.915930069 +0000
        @@ -7,6 +7,7 @@

         kill signal TERM
         kill timeout 10
        +limit nofile 50000 50000
         setuid kafka

         script

@mthssdrbrg
Copy link
Contributor

Cool. I have some other stuff that I'm gonna push to master as soon as I get the time, but I should be able to get this merged before the end of the week.

@mthssdrbrg
Copy link
Contributor

Merged, thanks for the PR.

@mthssdrbrg mthssdrbrg closed this Sep 29, 2014
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants