Code Monkey home page Code Monkey logo

Comments (6)

haf avatar haf commented on August 22, 2024

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

from puppet-riak.

Iristyle avatar Iristyle commented on August 22, 2024

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

from puppet-riak.

Iristyle avatar Iristyle commented on August 22, 2024

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.

from puppet-riak.

hectcastro avatar hectcastro commented on August 22, 2024

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.

from puppet-riak.

haf avatar haf commented on August 22, 2024

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

from puppet-riak.

dalesit avatar dalesit commented on August 22, 2024

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

from puppet-riak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.