You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Infrastructure: RKE2 running on EC2s, managed by Rancher.
Deployment tool: Helm
The text was updated successfully, but these errors were encountered:
However, there is a trap here (which we may or may not have fallen into before) and I feel like it deserves a warning. The resources block is rendered as-is which means that memory will not be set if you choose to use override. Obviously there is an "easy fix" in that you can define memory request/limit in your override too BUT the memory allocation via the command line would still be using the allocatedMemoryhttps://github.com/grafana/mimir/blob/mimir-distributed-5.5.1/operations/helm/charts/mimir-distributed/templates/memcached/_memcached-statefulset.tpl#L107 instead of taking the resources (and performing the corresponding calculation). Therefore it is necessary for you to make sure that the memory set via the resources block is compatible with the allocatedMemory value.
The templated out yaml above will yield (for the chunks cache)
which means that oom kill will naturally happen as the cache fills up. An additional condition to calculate a "new allocated memory" if the resource override is used would be very nice and minimize mistakes.
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 likeI 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
The text was updated successfully, but these errors were encountered: