Puppet Class: thumbor::nutcracker
- Defined in:
- modules/thumbor/manifests/nutcracker.pp
Overview
SPDX-License-Identifier: Apache-2.0 Class thumbor::nutcracker
Configures nutcracker for thumbor
Parameters
- thumbor_memcached_servers
-
List of memcached servers to point thumbor's nutcracker to.
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 36 |
# File 'modules/thumbor/manifests/nutcracker.pp', line 11
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 => 30000, # milliseconds
timeout => 250, # milliseconds
servers => $thumbor_memcached_servers,
},
}
class { 'nutcracker':
mbuf_size => '64k',
pools => $pools,
}
}
|