Merge lp:~james-sapara/charms/precise/redis-master/config-options into lp:charms/redis-master
Status: | Work in progress | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~james-sapara/charms/precise/redis-master/config-options | ||||
Merge into: | lp:charms/redis-master | ||||
Diff against target: |
144 lines (+88/-4) 6 files modified
config.yaml (+34/-0) hooks/config-changed (+48/-0) hooks/install (+2/-1) hooks/redis-admin-relation-joined (+1/-0) hooks/redis-master-relation-joined (+2/-2) revision (+1/-1) |
||||
To merge this branch: | bzr merge lp:~james-sapara/charms/precise/redis-master/config-options | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Ceppi (community) | Needs Fixing | ||
Charles Butler (community) | Needs Fixing | ||
Review via email: mp+200732@code.launchpad.net |
Description of the change
Ability to configure some options in redis which are important for more persistant/reliable data setups.
- port is not configurable, some security/firewall setups work better with control over the port.
- requirepass can be set, enabling a small layer of security. hardly perfect, but better than nothing.
- appendonly can be set to yes or no, to control how redis writes out its logs for replay.
- appendfsync can be set to eversec, no, always to control when it flushes writes
Basically, the default can result in minutes of lost data, which is not a big deal in a cache or LRU setting. Some use cases require a bit more reliability and persistence (token buckets, aggregate metrics, etc). These settings allow you to configure redis to more frequently fsync data, and recover from loss of power/segfault/etc.
If accepted, I can update redis-slave to match functionality.
Unmerged revisions
- 9. By James Sapara
-
Added some configurability to allow configuring redis for a more persistant/reliable use case.
- config options for port, requirepass, ppendonly and appendfsync (ease to add more)
- pass along the requirepass to master-relations
Greetings James,
I reviewed your changes and attached a bug to the MP to track progress. Please feel free to follow up if you have any questions about the review.
https:/ /bugs.launchpad .net/charms/ +bug/1274196
All the best