Puppet Class: thumbor::nutcracker

Defined in:
modules/thumbor/manifests/nutcracker.pp

Overview

Class thumbor::nutcracker

Configures nutcracker for thumbor

Parameters

thumbor_memcached_servers

List of memcached servers to point thumbor's nutcracker to.

Parameters:

  • thumbor_memcached_servers (Any) (defaults to: {})


10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'modules/thumbor/manifests/nutcracker.pp', line 10

class thumbor::nutcracker(
    $thumbor_memcached_servers = {}
    ) {
    include ::nutcracker::monitoring

    $pools = {
        'memcached'     => {
            auto_eject_hosts     => true,
            distribution         => 'ketama',
            hash                 => 'md5',
            listen               => '127.0.0.1:11212',
            preconnect           => true,
            server_connections   => 1,
            server_failure_limit => 3,
            server_retry_timeout => to_milliseconds('30s'),
            timeout              => 250,
            servers              => $thumbor_memcached_servers,
        },
    }

    class { '::nutcracker':
        mbuf_size => '64k',
        pools     => $pools,
    }

}