Skip to content

Enable memcached by default and fix discovering instances #551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

## master / unreleased

* [CHANGE] Memcacheds are now enabled by default #551
* [CHANGE] Change default config: distributors, rulers, queriers, query-frontend, nginx and compactors can be disrupted until 30%
* [CHANGE] Remove startup probes from compactors from default values. It's not recommended in general #542
* [CHANGE] Use default value for num_tokens in ingester configuration #544
* [DEPENDENCY] Update kiwigrid/k8s-sidecar docker tag to v1.30.5 #531
* [BUGFIX] fix discovering memcached instances #551

## 2.6.0 / 2025-05-07

Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,41 +383,45 @@ Kubernetes: `^1.19.0-0`
| memberlist.​service.​annotations | object | `{}` | |
| memberlist.​service.​labels | object | `{}` | |
| memcached-blocks-index.​architecture | string | `"high-availability"` | |
| memcached-blocks-index.​enabled | bool | `false` | Enables support for block index caching |
| memcached-blocks-index.​enabled | bool | `true` | Enables support for block index caching |
| memcached-blocks-index.​extraEnvVars[0] | object | `{"name":"MEMCACHED_CACHE_SIZE","value":"1024"}` | MEMCACHED_CACHE_SIZE is the amount of memory allocated to memcached for object storage |
| memcached-blocks-index.​extraEnvVars[1] | object | `{"name":"MEMCACHED_MAX_CONNECTIONS","value":"1024"}` | MEMCACHED_MAX_CONNECTIONS is the maximum number of simultaneous connections to the memcached service |
| memcached-blocks-index.​extraEnvVars[2] | object | `{"name":"MEMCACHED_THREADS","value":"4"}` | MEMCACHED_THREADS is the number of threads to use when processing incoming requests. By default, memcached is configured to use 4 concurrent threads. The threading improves the performance of storing and retrieving data in the cache, using a locking system to prevent different threads overwriting or updating the same values. |
| memcached-blocks-index.​metrics.​enabled | bool | `true` | |
| memcached-blocks-index.​metrics.​serviceMonitor.​enabled | bool | `false` | |
| memcached-blocks-index.​replicaCount | int | `2` | |
| memcached-blocks-index.​resources | object | `{}` | |
| memcached-blocks-index.​service.​clusterIP | string | `"None"` | |
| memcached-blocks-metadata.​architecture | string | `"high-availability"` | |
| memcached-blocks-metadata.​enabled | bool | `false` | Enables support for block metadata caching |
| memcached-blocks-metadata.​enabled | bool | `true` | Enables support for block metadata caching |
| memcached-blocks-metadata.​extraEnvVars[0] | object | `{"name":"MEMCACHED_CACHE_SIZE","value":"1024"}` | MEMCACHED_CACHE_SIZE is the amount of memory allocated to memcached for object storage |
| memcached-blocks-metadata.​extraEnvVars[1] | object | `{"name":"MEMCACHED_MAX_CONNECTIONS","value":"1024"}` | MEMCACHED_MAX_CONNECTIONS is the maximum number of simultaneous connections to the memcached service |
| memcached-blocks-metadata.​extraEnvVars[2] | object | `{"name":"MEMCACHED_THREADS","value":"4"}` | MEMCACHED_THREADS is the number of threads to use when processing incoming requests. By default, memcached is configured to use 4 concurrent threads. The threading improves the performance of storing and retrieving data in the cache, using a locking system to prevent different threads overwriting or updating the same values. |
| memcached-blocks-metadata.​metrics.​enabled | bool | `true` | |
| memcached-blocks-metadata.​metrics.​serviceMonitor.​enabled | bool | `false` | |
| memcached-blocks-metadata.​replicaCount | int | `2` | |
| memcached-blocks-metadata.​resources | object | `{}` | |
| memcached-blocks-metadata.​service.​clusterIP | string | `"None"` | |
| memcached-blocks.​architecture | string | `"high-availability"` | |
| memcached-blocks.​enabled | bool | `false` | Enables support for block caching |
| memcached-blocks.​enabled | bool | `true` | Enables support for block caching |
| memcached-blocks.​extraEnvVars[0] | object | `{"name":"MEMCACHED_CACHE_SIZE","value":"1024"}` | MEMCACHED_CACHE_SIZE is the amount of memory allocated to memcached for object storage |
| memcached-blocks.​extraEnvVars[1] | object | `{"name":"MEMCACHED_MAX_CONNECTIONS","value":"1024"}` | MEMCACHED_MAX_CONNECTIONS is the maximum number of simultaneous connections to the memcached service |
| memcached-blocks.​extraEnvVars[2] | object | `{"name":"MEMCACHED_THREADS","value":"4"}` | MEMCACHED_THREADS is the number of threads to use when processing incoming requests. By default, memcached is configured to use 4 concurrent threads. The threading improves the performance of storing and retrieving data in the cache, using a locking system to prevent different threads overwriting or updating the same values. |
| memcached-blocks.​metrics.​enabled | bool | `true` | |
| memcached-blocks.​metrics.​serviceMonitor.​enabled | bool | `false` | |
| memcached-blocks.​replicaCount | int | `2` | |
| memcached-blocks.​resources | object | `{}` | |
| memcached-blocks.​service.​clusterIP | string | `"None"` | |
| memcached-frontend.​architecture | string | `"high-availability"` | |
| memcached-frontend.​enabled | bool | `false` | Enables support for caching queries in the frontend |
| memcached-frontend.​enabled | bool | `true` | Enables support for caching queries in the frontend |
| memcached-frontend.​extraEnvVars[0] | object | `{"name":"MEMCACHED_CACHE_SIZE","value":"1024"}` | MEMCACHED_CACHE_SIZE is the amount of memory allocated to memcached for object storage |
| memcached-frontend.​extraEnvVars[1] | object | `{"name":"MEMCACHED_MAX_CONNECTIONS","value":"1024"}` | MEMCACHED_MAX_CONNECTIONS is the maximum number of simultaneous connections to the memcached service |
| memcached-frontend.​extraEnvVars[2] | object | `{"name":"MEMCACHED_THREADS","value":"4"}` | MEMCACHED_THREADS is the number of threads to use when processing incoming requests. By default, memcached is configured to use 4 concurrent threads. The threading improves the performance of storing and retrieving data in the cache, using a locking system to prevent different threads overwriting or updating the same values. |
| memcached-frontend.​metrics.​enabled | bool | `true` | |
| memcached-frontend.​metrics.​serviceMonitor.​enabled | bool | `false` | |
| memcached-frontend.​replicaCount | int | `2` | |
| memcached-frontend.​resources | object | `{}` | |
| memcached-frontend.​service.​clusterIP | string | `"None"` | |
| nginx.​affinity | object | `{}` | |
| nginx.​annotations | object | `{}` | |
| nginx.​autoscaling.​behavior | object | `{}` | Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behavior |
Expand Down
16 changes: 12 additions & 4 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,9 @@ compactor:

memcached-frontend:
# -- Enables support for caching queries in the frontend
enabled: false
enabled: true
service:
clusterIP: None
architecture: "high-availability"
replicaCount: 2
resources: {}
Expand All @@ -1601,7 +1603,9 @@ memcached-frontend:

memcached-blocks-index:
# -- Enables support for block index caching
enabled: false
enabled: true
service:
clusterIP: None
architecture: "high-availability"
replicaCount: 2
resources: {}
Expand All @@ -1624,7 +1628,9 @@ memcached-blocks-index:

memcached-blocks:
# -- Enables support for block caching
enabled: false
enabled: true
service:
clusterIP: None
architecture: "high-availability"
replicaCount: 2
resources: {}
Expand All @@ -1647,7 +1653,9 @@ memcached-blocks:

memcached-blocks-metadata:
# -- Enables support for block metadata caching
enabled: false
enabled: true
service:
clusterIP: None
architecture: "high-availability"
replicaCount: 2
resources: {}
Expand Down