redis_sentinel

contributions requested
Configure redis-sentinels

10,616 downloads

9,087 latest version

2.2 quality score

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.0.8 (latest)
  • 0.0.7
  • 0.0.6
  • 0.0.5
  • 0.0.4
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Dec 21st 2013

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'KyleAnderson-redis_sentinel', '0.0.8'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add KyleAnderson-redis_sentinel
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install KyleAnderson-redis_sentinel --version 0.0.8

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

KyleAnderson/redis_sentinel — version 0.0.8 Dec 21st 2013

#redis_sentinel Build Status

Warning

Only currently works on 2.6. Uses the Old behavior. The newer sentinel in 2.8 writes its own config file, which I not yet know how to handle.

##Overview

This puppet module configures the Redis Sentinel to do automatic master/slave control on a bunch of redis servers. (not to be confused with Redis Cluster.)

##Installation

###What this module affects

  • /etc/redis-sentinel.conf
  • A redis-sentinel service
  • It does not depend or interact with any other redis module

##Usage Examples

A simple usage of a single monitor:

include redis_sentinel
redis_sentinel::monitor { 'mymaster':
  host                    => '127.0.0.1',
  port                    => '6379',
  quorum                  => '2',
  down_after_milliseconds => '60000',
  failover_timeout        => '900000',
  can_failover            => 'yes',
  parallel_syncs          => '1',
}

A complex example with an array of redis servers using quorum:

include redis_sentinel
$redis_servers = [ 'redis1', 'redis2', 'redis3' ]
redis_sentinel::monitor { $redis_servers:
  quorum                  => size($redis_servers) / 2 + 1,
  down_after_milliseconds => '60000',
  failover_timeout        => '900000',
  can_failover            => 'yes',
  parallel_syncs          => size($redis_servers),
}

##Limitations

  • Only Supports Redis 2.6.x
  • Requires Redis to be installed via another module.
  • Not production tested!
  • Probably makes assumptions I'm not thinking about (open an issue!)
  • Only tested on ubuntu

##Requirements

##Development Open an issue or fork and open a Pull Request