grafana / mimir

Grafana Mimir provides horizontally scalable, highly available, multi-tenant, long-term storage for Prometheus.
https://grafana.com/oss/mimir/
GNU Affero General Public License v3.0
4.11k stars 526 forks source link

Unable to configure memcached container resources #9737

Open NRCan-LGariepy opened 3 hours ago

NRCan-LGariepy commented 3 hours ago

Describe the bug

Seemingly impossible to set values in the mimir-distributed chart to set the memory and CPU requests of the various memcached caches that mimir makes use of (chunks, results, etc). No matter the configuration, the caches always use 500m CPU.

To Reproduce

Setting chunks_chache.resources.requests with something like

  resources:
    requests:
      cpu: 100m

I also tried doing the same in memcached.resources.requests to no avail.

Expected behavior

I expected the caches (for example the chunks cache) to use the requests that I provided. Instead, the caches always reserve 500m CPU, no matter what I set.

Environment

56quarters commented 3 hours ago

Yes, this is currently hardcoded to 500m within the Helm chart. Seems reasonable to allow this to be configured if you'd like to attempt a PR.