1
################################
3
# This config file generated by the juju memcached charm. Changes
4
# may not be preserved.
6
################################
8
# memcached default config file
9
# 2003 - Jay Bonci <jaybonci@debian.org>
10
# This configuration file is read by the start-memcached script provided as
11
# part of the Debian GNU/Linux distribution.
13
# Run memcached as a daemon. This command is implied, and is not needed for the
14
# daemon to run. See the README.Debian that comes with this package for more
18
# Log memcached's output to /var/log/memcached
19
logfile /var/log/memcached.log
24
# Be even more verbose (print client commands as well)
27
# Start with a cap of 64 megs of memory. It's reasonable, and the daemon default
28
# Note that the daemon will grow to this size, but does not start out holding this much
32
# Default connection port is 11211
35
# Run the daemon as root. The start-memcached will default to running as root if no
36
# -u command is present in this config file
39
# Specify which IP address to listen on. The default is to listen on all IP addresses
40
# This parameter is one of the only security measures that memcached has, so make sure
41
# it's listening on a firewalled interface.
44
# Limit the number of simultaneous incoming connections. The daemon default is 1024
45
-c {{connection_limit}}
47
# Lock down all paged memory. Consult with the README and homepage before you do this
50
# Return error when memory is exhausted (rather than removing items)
53
# Maximize core file limit
56
{% if request_limit != -1 %}-R {{request_limit}}{% endif %}
57
{% if min_item_size != -1 %}-n {{min_item_size}}{% endif %}
58
{% if slab_page_size != -1 %}-I {{slab_page_size}}{% endif %}
59
{% if threads != -1 %}-t {{threads}}{% endif %}
60
{% if disable_auto_cleanup %}-M{% endif %}
61
{% if disable_cas %}-C{% endif %}
62
{% if factor != -1.0 %}-f {{factor}}{% endif %}