memcached (openstack) is no longer in use
[mirror/dsa-puppet.git] / 3rdparty / modules / memcached / templates / memcached.conf.erb
1 # File managed by puppet
2
3 # Run memcached as a daemon.
4 -d
5
6 <% if @pidfile -%>
7 # pidfile
8 -P <%= @pidfile %>
9 <% end -%>
10
11 # Log memcached's output
12 logfile <%= @logfile -%>
13
14 <% if @verbosity -%>
15 # Verbosity
16 -<%= @verbosity %>
17 <% end -%>
18
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]) %>
22
23 <% if @lock_memory -%>
24 # Lock down all paged memory.  There is a limit on how much memory you may lock.
25 -k
26 <% end -%>
27
28 <% if @use_sasl -%>
29 # Start with SASL support
30 -S
31 <% end -%>
32
33 <% if @unix_socket -%>
34 # UNIX socket path to listen on
35 -s <%= @unix_socket %>
36 <% else -%>
37
38 <% if @listen_ip != '' -%>
39 # IP to listen on
40 -l <%= @listen_ip %>
41 <% end -%>
42
43 # TCP port to listen on
44 -p <%= @tcp_port %>
45
46 # UDP port to listen on
47 -U <%= @udp_port %>
48 <% end -%>
49
50 # Run daemon as user
51 -u <%= @user %>
52
53 <% if @large_mem_pages -%>
54 # Try to use large memory pages (if available)
55 -L
56 <% end -%>
57
58 # Limit the number of simultaneous incoming connections.
59 -c <%= @max_connections %>
60
61 # Number of threads to use to process incoming requests.
62 -t <%= @processorcount %>
63
64 <% if @item_size -%>
65 # Override  the  default size of each slab page
66 -I <%= @item_size %>
67 <% end -%>
68
69 <% if @auto_removal -%>
70 # Disable automatic removal of items from the cache when out of memory
71 -M
72 <% end -%>