---
title: Charmhub | Deploy Memcached using Charmhub - The Open Operator Collection
description: Deploy the latest version of Memcached on any cloud.
url: https://charmhub.io/memcached/configurations
---

# Memcached

[Llama (LMA) Charmers](https://charmhub.io/publisher/llama-charmers "View all packages from Llama (LMA) Charmers")

* [Llama (LMA) Charmers](https://charmhub.io/publisher/llama-charmers "View all packages from Llama (LMA) Charmers")
* [Logging Tracing](https://charmhub.io/?filter=logging-tracing)

Platform:

24.04

22.04

20.04

19.10

19.04

18.04

16.04

14.04

stable 47

```
juju deploy memcached
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [allow-ufw-ip6-softfail](https://charmhub.io/memcached/configurations#allow-ufw-ip6-softfail)
* [connection-limit](https://charmhub.io/memcached/configurations#connection-limit)
* [disable-auto-cleanup](https://charmhub.io/memcached/configurations#disable-auto-cleanup)
* [disable-cas](https://charmhub.io/memcached/configurations#disable-cas)
* [disable-large-pages](https://charmhub.io/memcached/configurations#disable-large-pages)
* [extra-options](https://charmhub.io/memcached/configurations#extra-options)
* [factor](https://charmhub.io/memcached/configurations#factor)
* [listen\_address](https://charmhub.io/memcached/configurations#listen_address)
* [min-item-size](https://charmhub.io/memcached/configurations#min-item-size)
* [nagios\_context](https://charmhub.io/memcached/configurations#nagios_context)
* [repcached](https://charmhub.io/memcached/configurations#repcached)
* [repcached\_origin](https://charmhub.io/memcached/configurations#repcached_origin)
* [repcached\_port](https://charmhub.io/memcached/configurations#repcached_port)
* [request-limit](https://charmhub.io/memcached/configurations#request-limit)
* [size](https://charmhub.io/memcached/configurations#size)
* [slab-page-size](https://charmhub.io/memcached/configurations#slab-page-size)
* [tcp-port](https://charmhub.io/memcached/configurations#tcp-port)
* [threads](https://charmhub.io/memcached/configurations#threads)
* [udp-port](https://charmhub.io/memcached/configurations#udp-port)

[Learn about configurations >](https://juju.is/docs/juju/configuration#heading--application-configuration)

* allow-ufw-ip6-softfail | boolean

  When this option is set to True the charm will disable the IPv6
  support in ufw in case ip6tables couldn't be activated, situations
  where this could happen is in a LXC container running on top of a
  host that doesn't have loaded the ip6\_tables.

  If this option is False (the default) and ip6\_tables module couldn't
  be loaded, the charm will fail to install.
* connection-limit | int

  Default: 1024

  maximum simultaneous connections (memcached option -c)
* disable-auto-cleanup | boolean

  do not remove things automatically from the cache on OOM
  (memcached option -M)
* disable-cas | boolean

  disable use of CAS (and reduce the per-item size by 8 bytes)
* disable-large-pages | boolean

  The charm will will try to use large pages if given more than 2GB of RAM. You may want to disable this behavior. (memcached option -L)
* extra-options | string

  memcached has many other options documented in its man page. You may pass them here as a string which
* factor | float

  Default: 1.25

  Use <factor> as the multiplier for computing the sizes of memory
  chunks that items are stored in. A lower value may result in less
  wasted memory depending on the total amount of memory available
  and the distribution of item sizes. The default is 1.25.
* listen\_address | string

  Default: 0.0.0.0

  Listen on <addr>; default to INADDR\_ANY.
  You may specify multiple addresses separated by comma.
  Binding to an internal or firewalled network interface is suggested.
* min-item-size | int

  Default: -1

  Allocate a minimum of <size> bytes for the item key, value,
  and flags. The default is 48. If you have a lot of small
  keys and values, you can get a significant memory efficiency
  gain with a lower value. If you use a high chunk growth factor
  (-f option), on the other hand, you may want to
  increase the size to allow a bigger percentage of your
  items to fit in the most densely packed (smallest) chunks.
  (memcached option -n)
* nagios\_context | string

  Default: juju

  Used by the nrpe-external-master subordinate charm.
  A string that will be prepended to instance name to set the host name
  in nagios. So for instance the hostname would be something like:
  juju-memcached-0
  If you're running multiple environments with the same services in them
  this allows you to differentiate between them.
* repcached | boolean

  Enable memcached replication
* repcached\_origin | string

  Default: ppa:niedbalski/memcached-repcached

  Memcached + Repcached package location
* repcached\_port | string

  Default: 11212

  TCP port number for replication (default: 11212)
* request-limit | int

  Default: -1

  limit of requests a single client can make at one time
  (memcached option -R) -1 takes memcached default (20)
* size | int

  Default: 768

  Size of memcache pool in MiB (memcached option -m)
* slab-page-size | int

  Default: -1

  Override the size of each slab page in bytes. In mundane
  words, it adjusts the maximum item size that memcached
  will accept. You can use the suffixes K and M to specify
  the size as well, so use 2000000 or 2000K or 2M if you want
  a maximum size of 2 MB per object. It is not recommended
  to raise this limit above 1 MB due just to performance reasons.
  The default value is 1 MB. (memcached option -I) -1 takes
  the memcached default.
* tcp-port | int

  Default: 11211

  TCP port to listen on. (memcached option -p)
* threads | int

  Default: -1

  number of threads to use. default is 4. (memcached option -t)
* udp-port | int

  UDP port to listen on (memcached option -U)
