]> git.openstreetmap.org Git - chef.git/blob - cookbooks/memcached/templates/default/memcached.conf.erb
nominatim: install secondary importance file
[chef.git] / cookbooks / memcached / templates / default / memcached.conf.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 # Run memcached as a daemon
4 -d
5
6 # Run as user memcache
7 -u memcache
8
9 # Use a pidfile
10 -P /run/memcached/memcached.pid
11
12 # Log memcached's output to /var/log/memcached
13 logfile /var/log/memcached.log
14
15 # Limit the size of the cache to <%= node[:memcached][:memory_limit] %>Mb
16 -m <%= node[:memcached][:memory_limit] %>
17
18 # Configure where we listen for requests
19 -l <%= node[:memcached][:ip_address] %>
20 <% if node[:memcached][:tcp_port] -%>
21 -p <%= node[:memcached][:tcp_port] %>
22 <% end -%>
23 <% if node[:memcached][:udp_port] -%>
24 -U <%= node[:memcached][:udp_port] %>
25 <% end -%>
26
27 # Limit the number of simultaneous connections
28 -c <%= node[:memcached][:connection_limit] %>
29
30 # Set chunk growth factor
31 -f <%= node[:memcached][:chunk_growth_factor] %>
32
33 # Set minimum item size
34 -n <%= node[:memcached][:min_item_size] %>