Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.4 KB

infrastructure-memcached.md

File metadata and controls

40 lines (25 loc) · 1.4 KB

Deploy a Memcached

Deploy the Memcached Cluster

!!! example "Run the memcached deployment Script bin/install-memcached.sh You can include paramaters to deploy aio or base-monitoring. No paramaters deploys base"

``` shell
--8<-- "bin/install-memcached.sh"
```

!!! note

Memcached has a base configuration which is HA and production ready. If you're deploying on a small cluster the `aio` configuration may better suit the needs of the environment.

Alternative - Deploy the Memcached Cluster With Monitoring Enabled

View the memcached exporter instructions to install a HA ready memcached cluster with monitoring and metric collection enabled.

Verify readiness with the following command

kubectl --namespace openstack get horizontalpodautoscaler.autoscaling memcached -w

Create shared os-memcached secret

kubectl --namespace openstack \
        create secret generic os-memcached \
        --type Opaque \
        --from-literal=memcache_secret_key="$(< /dev/urandom tr -dc _A-Za-z0-9 | head -c${1:-32};echo;)"

!!! Note

This is a shared secret that is distributed to all services that require it. Rotating this value means updating all services.

!!! Genestack

For more information on how to enable memcached monitoring with prometheus, see the [memcached exporter](prometheus-monitoring-overview.md) documentation.