~niedbalski/charms/trusty/memcached/replication

« back to all changes in this revision

Viewing changes to templates/memcached.conf

  • Committer: Jorge Niedbalski
  • Author(s): Felipe Reyes
  • Date: 2014-12-09 22:11:53 UTC
  • mfrom: (60.1.33 memcached)
  • Revision ID: jorge.niedbalski@canonical.com-20141209221153-1iewwgtv14f7nk3v
[freyes, r=niedbalski] MP is a rewrite in python to leverage charmhelpers and secure memcached 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
################################
 
2
#
 
3
# This config file generated by the juju memcached charm. Changes
 
4
# may not be preserved.
 
5
#
 
6
################################
 
7
#
 
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. 
 
12
 
 
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
 
15
# information.
 
16
-d
 
17
 
 
18
# Log memcached's output to /var/log/memcached
 
19
logfile /var/log/memcached.log
 
20
 
 
21
# Be verbose
 
22
# -v
 
23
 
 
24
# Be even more verbose (print client commands as well)
 
25
# -vv
 
26
 
 
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
 
29
# memory
 
30
-m {{mem_size}}
 
31
 
 
32
# Default connection port is 11211
 
33
-p {{tcp_port}}
 
34
 
 
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
 
37
-u memcache
 
38
 
 
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.
 
42
-l 0.0.0.0
 
43
 
 
44
# Limit the number of simultaneous incoming connections. The daemon default is 1024
 
45
-c {{connection_limit}}
 
46
 
 
47
# Lock down all paged memory. Consult with the README and homepage before you do this
 
48
# -k
 
49
 
 
50
# Return error when memory is exhausted (rather than removing items)
 
51
# -M
 
52
 
 
53
# Maximize core file limit
 
54
# -r
 
55
 
 
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 %}