[chef] Re: Re: Re: RE: setting file handler limits


Chronological Thread 
  • From: Brian Hatfield < >
  • To:
  • Subject: [chef] Re: Re: Re: RE: setting file handler limits
  • Date: Thu, 11 Oct 2012 16:49:53 -0400

Actually - that was easier than I thought: http://community.opscode.com/cookbooks/ulimit

It provides a user_ulimit resource that allows you to add ulimit overrides for processes and filehandles for specific users. It also does the right thing for Ubuntu, where ulimit overrides for the 'su' command is actually disabled by default.

Brian



On Thu, Oct 11, 2012 at 4:39 PM, Brian Hatfield < " target="_blank"> > wrote:
I actually just wrote one the other day, but I have no idea how to share it. It's quite simple, and provides user_ulimit as a resource.

I'll ask my coworker and get it uploaded.


On Thu, Oct 11, 2012 at 4:34 PM, Mike < " target="_blank"> > wrote:
AJ - that's cool for sysctl, but I don't think it addresses
user-session file handler limits.

I haven't seen a cookbook out there yet that does templated/lwrp
/etc/security/limits.d/*.conf files yet - might be worth writing one.

-Mike

On Thu, Oct 11, 2012 at 4:23 PM, AJ Christensen < " target="_blank"> > wrote:
> I use Jesse Nelson's (spheromak) sysctl cookbook for helping with
> stuff like this.
>
> https://github.com/spheromak/sysctl-cookbook
>
> Cheers,
>
> AJ
>
> On 12 October 2012 09:06, S Ahmed < " target="_blank"> > wrote:
>> Are there any chef recipes to adjust a servers file handler limit?
>>
>> Trying to do stuff like
>> http://www.lognormal.com/blog/2012/09/27/linux-tcpip-tuning/
>>
>>
>> Not sure how to go about doing this, if it requires a server restart etc.





Archive powered by MHonArc 2.6.16.

§