1 # File managed by puppet
3 # Run memcached as a daemon.
11 # Log memcached's output
12 logfile <%= @logfile -%>
19 # Use <num> MB memory max to use for object storage.
20 <% Puppet::Parser::Functions.function('memcached_max_memory') -%>
21 -m <%= scope.function_memcached_max_memory([@max_memory]) %>
23 <% if @lock_memory -%>
24 # Lock down all paged memory. There is a limit on how much memory you may lock.
29 # Start with SASL support
33 <% if @unix_socket -%>
34 # UNIX socket path to listen on
35 -s <%= @unix_socket %>
38 <% if @listen_ip != '' -%>
43 # TCP port to listen on
46 # UDP port to listen on
53 <% if @large_mem_pages -%>
54 # Try to use large memory pages (if available)
58 # Limit the number of simultaneous incoming connections.
59 -c <%= @max_connections %>
61 # Number of threads to use to process incoming requests.
62 -t <%= @processorcount %>
65 # Override the default size of each slab page
69 <% if @auto_removal -%>
70 # Disable automatic removal of items from the cache when out of memory