Skip to content

Commit c65b18c

Browse files
committed
add guide with extraArgs
1 parent ae17361 commit c65b18c

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

docs/guides/configure_memcached.markdown

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ has_toc: false
1717
---
1818
# Configuring memcached as the caching store
1919

20-
If you want to use [memcached](https://memcached.org/) as a caching store, you first have to deploy it separately (e.g. via separate helm chart). The existing deployments can be referenced in the `values.yaml` so that they are used as caching stores.
20+
If you want to use [memcached](https://memcached.org/) as a caching store, you first have to deploy it separately (e.g. via a dedicated helm chart). The existing deployments can be referenced by two approaches.
2121

22-
Here's how to configure the memcached's via the values:
22+
## Referencing memcached stores via values
23+
24+
Here's how to configure preexisting memcached deployment with their dedicated `memcached-*` sections in the chart values:
2325

2426
{% raw %}
2527
```yaml
@@ -41,3 +43,25 @@ memcached-blocks-metadata:
4143
containerPort: 11211
4244
```
4345
{% endraw %}
46+
47+
## Referencing via `extraArgs`
48+
49+
You can also omit the `memcached-*` sections entirely and use the `extraArgs` of each cortex component to reference an existing memcached deployment.
50+
51+
Here's an (incomplete) example:
52+
53+
{% raw %}
54+
```yaml
55+
query_frontend:
56+
extraArgs:
57+
frontend.memcached.addresses: dns+memcached-frontend.memcached.svc.cluster.local:11211
58+
compactor:
59+
extraArgs:
60+
blocks-storage.bucket-store.index-cache.backend: memcached
61+
blocks-storage.bucket-store.index-cache.memcached.addresses: dns+memcached-blocks-index.memcached.svc.cluster.local:11211
62+
ingester:
63+
extraArgs:
64+
blocks-storage.bucket-store.metadata-cache.backend: memcached
65+
blocks-storage.bucket-store.metadata-cache.memcached.addresses: dns+memcached-blocks-metadata.memcached.svc.cluster.local:11211
66+
```
67+
{% endraw %}

0 commit comments

Comments
 (0)