Skip to content

Commit

Permalink
increase krr default memory request and limit to 2Gi, to prevent oom …
Browse files Browse the repository at this point in the history
…kills when scanning big clusters (#1441)
  • Loading branch information
arikalon1 authored May 27, 2024
1 parent 3fce721 commit 498d5f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/playbook-reference/actions/scans.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ To prevent the KRR job from OOMKill (Out of Memory), you can configure the memor
runner:
additional_env_vars:
- name: KRR_MEMORY_REQUEST
value: "2Gi"
value: "3Gi"
- name: KRR_MEMORY_LIMIT
value: "2Gi"
value: "3Gi"
By default, the memory request and limit are set to ``1Gi``. Modify these values according to your requirements.
By default, the memory request and limit are set to ``2Gi``. Modify these values according to your requirements.

Popeye - A Kubernetes Cluster Sanitizer
************************************************
Expand Down
5 changes: 3 additions & 2 deletions playbooks/robusta_playbooks/krr.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from hikaru.model.rel_1_26 import Container, EnvVar, EnvVarSource, PodSpec, ResourceRequirements, SecretKeySelector
from prometrix import AWSPrometheusConfig, CoralogixPrometheusConfig, PrometheusAuthorization, PrometheusConfig
from pydantic import BaseModel, ValidationError, validator

from robusta.api import (
IMAGE_REGISTRY,
RUNNER_SERVICE_ACCOUNT,
Expand All @@ -33,8 +34,8 @@
from robusta.integrations.prometheus.utils import generate_prometheus_config

IMAGE: str = os.getenv("KRR_IMAGE_OVERRIDE", f"{IMAGE_REGISTRY}/krr:v1.9.0")
KRR_MEMORY_LIMIT: str = os.getenv("KRR_MEMORY_LIMIT", "1Gi")
KRR_MEMORY_REQUEST: str = os.getenv("KRR_MEMORY_REQUEST", "1Gi")
KRR_MEMORY_LIMIT: str = os.getenv("KRR_MEMORY_LIMIT", "2Gi")
KRR_MEMORY_REQUEST: str = os.getenv("KRR_MEMORY_REQUEST", "2Gi")


SeverityType = Literal["CRITICAL", "WARNING", "OK", "GOOD", "UNKNOWN"]
Expand Down

0 comments on commit 498d5f6

Please sign in to comment.