twemproxy

This is a puppet module installs and configures Twemproxy.

decebal2dac

decebal2dac

7,802 downloads

7,268 latest version

3.1 quality score

Version information

  • 1.2.7 (latest)
  • 1.2.6
  • 1.2.5
  • 1.1.5
released Mar 15th 2016
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet 3.x
  • RedHat
    ,
    CentOS
    ,
    Debian
    ,
    Ubuntu

Start using this module

Documentation

decebal2dac/twemproxy — version 1.2.7 Mar 15th 2016

Puppet-twemproxy

This module manages twemproxy package installation from source. It is based on and compatible with puppet-twemproxy.

The support version of twemproxy is 0.4.0 to take advantage of various improvements and in addtion working tests and addtional stats parameters have been added.

Currently acceptance test using centos 6.5

Currently only supports REDIS and not memcached.

USAGE

    twemproxy::resource::nutcracker4 { 'redis-twemproxy':
        redis_db             => 1,
        port                 => '22112',
        nutcracker_hash      => 'fnv1a_64',
        nutcracker_hash_tag  => '{}',
        distribution         => 'ketama',
        auto_eject_hosts     => true,
        verbosity            => 7,
        log_dir              => '/var/log/nutcracker',
        pid_dir              => '/var/run/nutcracker',
        statsaddress         => '127.0.0.1',
        statsport            => 22222,
        statsinterval        => 10000,
        members              =>  [
            {
                'ip'         => '127.0.0.1',
                'name'       => 'redis-6390',
                'redis_port' => '6379',
                'weight'     => '1',
                'timeout'    => 400
            },
            {
                'ip'         => '127.0.0.1',
                'name'       => 'redis-6391',
                'redis_port' => '6380',
                'weight'     => '1',
                'timeout'    => 400
            }
        ]
    }

Testing

bundle install
bundle exec rake test
bundle exec rake beaker

BEAKER_setfile=spec/acceptance/nodesets/centos-7-x64.yml bundle exec rake beaker

Dependencies

  1. puppetlabs/stdlib

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request