Comments (10)
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.
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.
That was fast! Thanks!
from redisio.
It would be nice to also support 2.2 for those stuck with it for the time being.
from redisio.
I will make a separate issue to get support for the 2.2 series.
from redisio.
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.
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.
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.
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.
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)
- Add protected-mode in sentinel.conf HOT 2
- issue with changing config because attributes saved as node.normal HOT 2
- undefined method `selinux_policy_install' HOT 2
- Dangerfile should use failure instead of fail HOT 1
- Remove .rubocop.yml with Dangerfile HOT 1
- Update Changelog HOT 2
- Run latest cookstyle HOT 2
- Update builds to be parallel HOT 2
- redis.conf.erb version checks incorrectly on some sections
- Chef 16+ user_ulimit warning message HOT 1
- Fix all checks so they pass
- rename_commands not populating rename-command
- SELinux: Redis server running unconfined when installed from sources HOT 1
- After OS restart, redis listens only on loopback HOT 1
- Redis service should be restarted when installing a new version
- Missing required sentinel parameter master_ip
- WARNING: Sentinel was not able to save the new configuration on disk!!!: Permission denied HOT 2
- Dependency Dashboard
- Migrate integration tests from ServerSpec to InSpec
- redis config file should be updated as needed (desired state) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redisio.