How to set resource limit for `exporter` container in the `results-cache` pod?

This results-cache pod has two containers memcached and exporter.

By default, I have

This is because here,

resultsCache:
  # -- Amount of memory allocated to results-cache for object storage (in MB).
  allocatedMemory: 1024
  # -- Resource requests and limits for the results-cache
  # By default a safe memory limit will be requested based on allocatedMemory value (floor (* 1.2 allocatedMemory)).
  resources: null

The memory is calculated based on allocatedMemory which is why got that 1953125Ki.

If I set

resultsCache:
  resources:
    requests:
      cpu: 100m
      memory: 128Mi
    limits:
      cpu: 200m
      memory: 256Mi

I can see

memcached container in results-cache pod, the resource limit has been applied.

However, I am still not sure how to set the rest of exporter container CPU and memory resource limit.

Any guide would be appreciate, thanks! :smiling_face:

1 Like

Thank @jangaraj ! I can confirm after adding

memcachedExporter:
  resources:
    requests:
      cpu: 100m
      memory: 128Mi
    limits:
      cpu: 200m
      memory: 256Mi

it applies to not only. the exporter container in results-cache pod, but also exporter container in chunks-cache pods.