memcached
: This class manages memcachedmemcached::params
: == Class: memcached::params
memcached::instance::servicefile
: helper class to configure the memcache multiinstance unit file once
memcached::instance
: Manage multiple memcached instances
memcached::max_memory
: Calculate max_memory size from fact 'memsize' and passed argument.
This class manages memcached
include memcached
The following parameters are available in the memcached
class:
package_ensure
service_manage
service_flags
logfile
logstdout
syslog
pidfile
manage_firewall
max_memory
max_item_size
min_item_size
factor
lock_memory
listen
listen_ip
tcp_port
udp_port
user
max_connections
verbosity
unix_socket
unix_socket_mask
install_dev
processorcount
service_restart
auto_removal
use_sasl
use_tls
tls_cert_chain
tls_key
tls_ca_cert
tls_verify_mode
use_registry
registry_key
large_mem_pages
use_svcprop
svcprop_fmri
svcprop_key
extended_opts
config_tmpl
disable_cachedump
max_reqs_per_event
disable_flush_all
disable_watch
memory_file
Data type: Enum['present', 'latest', 'absent']
Set ensure of the memcached package
Default value: 'present'
Data type: Boolean
Manage the memcached service
Default value: true
Data type: Optional[String]
Pass flags to the service managed by Puppet
Default value: $memcached::params::service_flags
Data type: Optional[Stdlib::Absolutepath]
Specify file to log to. Not supported on OS using systemd
Default value: $memcached::params::logfile
Data type: Boolean
Disable logging to a file or syslog entirely. Only supported on RedHat-based OS and Suse
Default value: false
Data type: Boolean
Log to syslog. Only supported on RedHat-based OS and Suse
Default value: false
Data type: Variant[Stdlib::Absolutepath, Boolean[false], Undef]
Save pid in file
Default value: $memcached::params::pidfile
Data type: Boolean
Create simple firewall rules. Only supported on Linux
Default value: false
Data type: String[1]
Max memory memcached should use to store items. Either in percent or mb
Default value: '95%'
Data type: Optional[Variant[Integer, String]]
Adjusts max item size
Default value: undef
Data type: Optional[Variant[Integer, String]]
Min space used for key+value+flags
Default value: undef
Data type: Optional[Variant[Integer, String]]
Chunk size growth factor
Default value: undef
Data type: Boolean
Lock down all paged memory
Default value: false
Data type: Optional[Variant[String,Array[String]]]
Interface to listen on
Default value: undef
Data type: Optional[Variant[Stdlib::IP::Address,Array[Stdlib::IP::Address]]]
Deprecated. Use listen
instead
Default value: undef
Data type: Integer
TCP port to listen on
Default value: 11211
Data type: Integer
UDP port to listen on
Default value: 0
Data type: String
User to run memcached service as
Default value: $memcached::params::user
Data type: Integer
Max simultaneous connections
Default value: 8192
Data type: Optional[Enum['v', 'vv', 'vvv']]
v: verbose (print errors/warnings while in event loop) vv: very verbose (also print client commands/responses) vvv: extremely verbose (internal state transitions)
Default value: undef
Data type: Optional[String]
UNIX socket to listen on (disables network support)
Default value: undef
Data type: String
access mask for UNIX socket, in octal
Default value: '0755'
Data type: Boolean
Manage installation of the memcached dev package
Default value: false
Data type: Variant[String,Integer]
Number of threads to use
Default value: $facts['processors']['count']
Data type: Boolean
Whether or not to restart the memcached service on changes
Default value: true
Data type: Boolean
Return error on memory exhausted instead of evicting
Default value: false
Data type: Boolean
Turn on SASL authentication
Default value: false
Data type: Boolean
Enable TLS/SSL
Default value: false
Data type: Optional[Stdlib::Absolutepath]
Path to certificate chain file
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Path to certificate key file
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Path to CA certificate file
Default value: undef
Data type: Integer[0,3]
Peer certificate verify mode
Default value: 1
Data type: Boolean
Default value: $memcached::params::use_registry
Data type: String
Default value: 'HKLM\System\CurrentControlSet\services\memcached\ImagePath'
Data type: Boolean
Try to use large memory pages (if available)
Default value: false
Data type: Boolean
Default value: $memcached::params::use_svcprop
Data type: String
Default value: 'memcached:default'
Data type: String
Default value: 'memcached/options'
Data type: Optional[Array[String]]
Array of extended options
Default value: undef
Data type: String
Use a different config template
Default value: $memcached::params::config_tmpl
Data type: Boolean
Disable stats cachedump and lru_crawler metadump
Default value: false
Data type: Optional[Integer]
Maximum number of requests per event, limits the requests processed per connection to prevent starvation
Default value: undef
Data type: Boolean
Disable flush_all command
Default value: false
Data type: Boolean
Disable watch commands (live logging)
Default value: false
Data type: Optional[Stdlib::Absolutepath]
mmap a file for item memory.
Default value: undef
== Class: memcached::params
Manage multiple memcached instances
The following parameters are available in the memcached::instance
defined type:
Data type: Boolean
enable/disable fireall management via puppetlabs/firewall
Default value: false
Data type: Stdlib::Port::Unprivileged
the udp and tcp port to listen on. By default, the instance name is used
Default value: Integer($name)
Data type: Optional[Systemd::ServiceLimits]
systemd limits for the service
Default value: undef
Data type: Optional[String[1]]
overrides for the unit, as string
Default value: undef
Data type: Optional[Stdlib::Filesource]
overrides for the unit, as file resource
Default value: undef
Type: Ruby 4.x API
Calculate max_memory size from fact 'memsize' and passed argument.
Calculate max_memory size from fact 'memsize' and passed argument.
Returns: Integer
Data type: Any