Coder Social home page Coder Social logo

Comments (10)

cmer avatar cmer commented on June 18, 2024

I also tried setting maxclients to something other than 0 in my json configuration file but it did not work. Installing 2.4.16 worked as expected.

"redisio": {
  "safe_install": false,
  "version": "2.4.16"
}

from redisio.

brianbianco avatar brianbianco commented on June 18, 2024

My guess probably has to do with specification changes to the configuration file for 2.6. I haven't toyed with deploying 2.6 with this cookbook yet but I will start work on this. It most likely will need all sorts of configuration options added for the new version jump as well.

Just as a quick hack, since the cookbook itself include the conf.d directory, you can override essentially any setting because redis honors the last found configuration setting.

I will mess with this and see what I can figure out.

from redisio.

cmer avatar cmer commented on June 18, 2024

That was fast! Thanks!

from redisio.

andreacampi avatar andreacampi commented on June 18, 2024

It would be nice to also support 2.2 for those stuck with it for the time being.

from redisio.

brianbianco avatar brianbianco commented on June 18, 2024

I will make a separate issue to get support for the 2.2 series.

from redisio.

brianbianco avatar brianbianco commented on June 18, 2024

It looks like between redis 2.4 -> 2.6 maxclients 0 is no longer supported. In redis 2.6 max clients will default to 10,000, and if for some reason it is unable to set max clients it will resort to max file descriptors - 32.

I think the best way to handle this situation is simply to set the maxclients default to 10000 instead of 0. This will affect users who are relying on the fact that 0 means "Until I run out of file descriptors". I suspect that a pretty supreme edge case, however it will be necessary for anybody running the 2.4 series who wants "unlimited" clients to override this attribute.

I really think this is a better alternative to injecting a bunch of unnecessary logic to determine what max clients should be by default based upon the redis version.

from redisio.

brianbianco avatar brianbianco commented on June 18, 2024

All that being said, I also think it is important to note that redis 2.6.0-rc6 reports it version on the command line as "2.5.12". This means that the redisio cookbook will try to compile and install redis on each run as it thinks you want 2.6.0 and have 2.5.12. My suggestion for this would be to host the redis tarball yourself somewhere and rename it from 2.6.0-rc12 to 2.5.12.

from redisio.

brianbianco avatar brianbianco commented on June 18, 2024

As of commit f9558e5 the redisio cookbook now works with 2.6.0-rc6. The only catch (as noted in a previous comment) is that redis reports itself as 2.5.12. If you plan on using this I highly suggest hosting the tarball yourself and changing it to be named

redis-2.5.12.tar.gz

This is because the provider checks the version reported by redis to see if it needs to install a new version. Since that is the case if you don't rename the tarball and tell it you are installing version "2.5.12" it will try to install a new version every single chef-client run (as it redis will report it is version 2.5.12 and you are telling it you want 2.6.0-rc6). While that technically isn't TOO harmful (as your current running instance is loaded into memory) it certainly is annoying and wasteful.

from redisio.

brianbianco avatar brianbianco commented on June 18, 2024

You could actually also set safe_install to true after installing it the first time and that should prevent it from trying to install again.

from redisio.

lock avatar lock commented on June 18, 2024

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.

from redisio.

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.