# Memcached

## Overview

The source code and default configuration of the Building Block is available in our [code.syseleven.de](<https://code.syseleven.de/syseleven/building-blocks/helmfiles/memcached>). Infos on release notes and new features please follow [Release notes memcache](<https://code.syseleven.de/syseleven/building-blocks/helmfiles/memcached/-/blob/main/RELEASE-NOTES.md>)

### Memechached

Memcached is a popular cache server which can boost the performance of dynamic websites.

### Prerequisites On Memcached

Proceed with the following prerequisite description to use the Building Block out of the box.

#### Recommended setup

A recommended resource overview is listed in the table below.

| CPU / vCPU | Memory |
| --- | --- |
| 0.6 | 2304 |

No further activities need to be carried out in advance.

### Adding The Building Block

Add the directory `syseleven-memcached` to your control repository. Add a `.gitlab-ci.yml` to the directory with the following content:

```yaml
include:
  - project: syseleven/building-blocks/helmfiles/memcached
    file: JobDevelopment.yaml
    ref: { { site.building_blocks.memcached.version|e } }
  - project: syseleven/building-blocks/helmfiles/memcached
    file: JobStaging.yaml
    ref: { { site.building_blocks.memcached.version|e } }
  - project: syseleven/building-blocks/helmfiles/memcached
    file: JobProduction.yaml
    ref: { { site.building_blocks.memcached.version|e } }
```

Remove environments you are not using by removing their include.

### Required Configuration

No configuration is required.

### Monitoring

#### Additional Alert-Rules

- None

#### Additional Grafana dashboards

- Memcached monitoring
- An overview of performance metrics of memcached (for example bytes read/written, items, commands, ...)

### Scaling Setup

The default scenario is to run memcached as standalone architecture. High Availability is not supported.

[HA Memcached Issue](<https://github.com/bitnami/charts/issues/5201>)

- MaxMemory and MaxItemSize can be adjusted
- Requests/limits for CPU/memory can be adjusted

### Release-Notes

Please find more infos on release notes and new features [release notes Memcached](<https://code.syseleven.de/syseleven/building-blocks/helmfiles/memcached/-/blob/main/RELEASE-NOTES.md>)
