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

/etc/default/riak ulimit support #13

Open
Iristyle opened this issue Mar 27, 2013 · 6 comments
Open

/etc/default/riak ulimit support #13

Iristyle opened this issue Mar 27, 2013 · 6 comments

Comments

@Iristyle
Copy link

I realize this is OS specific, but wondering if you've given any thought to including this?

See basho-labs/riak-chef-cookbook@41661c2 for the chef cookbook

@haf
Copy link
Contributor

haf commented Apr 3, 2013

Does this mean that riak would be allowed to open more file descriptors?

@Iristyle
Copy link
Author

Iristyle commented Apr 3, 2013

Yes, default is 1024 (at least on Ubuntu which is what we're using) and recommend is a minimum of 4096

http://docs.basho.com/riak/latest/cookbooks/Open-Files-Limit/

I think the most correct way is to probably use PAM... but I haven't tried it out yet.

There are PAM modules floating around at

haf added a commit that referenced this issue Apr 4, 2013
ulimit simple implementation

This relates to issue #13 - @Iristyle - could you check which of the options - `/etc/default/riak` or `/etc/pam.d/common-session` should be used and whether that differs between versions of debian/ubuntu?
@Iristyle
Copy link
Author

Iristyle commented Apr 5, 2013

In response to #17 ... from the Riak docs. I think the most correct answer is to set /etc/default/riak and the PAM method.

The initial docs say:

On Ubuntu, if you’re always relying on the init scripts to start Riak, you can create the file /etc/default/riak and specify a manual limit like so:
ulimit -n 65536

...

As init scripts are always run as the root user, there’s no need to specifically set limits in /etc/security/limits.conf if you’re solely relying on init scripts.

But from what I can tell, the PAM method is correct if you need to perform, e.g. join commands over SSH?

Unfortunately I'm not an expert over various distro versions. We're fixed on Precise as its LTS.

@hectcastro
Copy link

For the Chef cookbook we took the /etc/default/riak route for Debian due to the start-stop-daemon init script update: basho-labs/riak-chef-cookbook@26f21f9

Apparently, start-stop-daemon bypasses PAM, which skips overrides in /etc/security/limits.conf.

@haf
Copy link
Contributor

haf commented Nov 10, 2013

Potential candidate for being used: voxpupuli/puppet-augeasproviders#35

@dalesit
Copy link

dalesit commented Oct 29, 2015

I believe this is now in the module from Pull #64, so could presumably be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants