diff --git a/docs/sources/upgrading/_index.md b/docs/sources/upgrading/_index.md index 45f5ef763e..c8bbc98927 100644 --- a/docs/sources/upgrading/_index.md +++ b/docs/sources/upgrading/_index.md @@ -49,6 +49,15 @@ We introduced a new cache called `embedded-cache` which is an in-process cache s Currently `embedded-cache` with `distributed: true` can be enabled only for results cache. +#### Evenly spread Memcached pods for chunks across kubernetes nodes + +We now evenly spread memcached_chunks pods across the available kubernetes nodes, but allowing more than one pod to be scheduled into the same node. +If you want to run at most a single pod per node, set `$.memcached.memcached_chunks.use_topology_spread` to false. + +While we attempt to schedule at most 1 memcached_chunks pod per Kubernetes node with the `topology_spread_max_skew: 1` field, +if no more nodes are available then multiple pods will be scheduled on the same node. +This can potentially impact your service's reliability so consider tuning these values according to your risk tolerance. + #### Evenly spread distributors across kubernetes nodes We now evenly spread distributors across the available kubernetes nodes, but allowing more than one distributors to be scheduled into the same node. diff --git a/production/ksonnet/loki/memcached.libsonnet b/production/ksonnet/loki/memcached.libsonnet index 55937fe5a0..18d277c028 100644 --- a/production/ksonnet/loki/memcached.libsonnet +++ b/production/ksonnet/loki/memcached.libsonnet @@ -6,6 +6,7 @@ memcached { name: 'memcached', max_item_size: '2m', memory_limit_mb: 4096, + use_topology_spread: true, }, // Dedicated memcached instance used to temporarily cache index lookups.