From 8ab5124156defc62c65da224cb0032b6f894a49e Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Thu, 10 Feb 2022 02:55:23 +0100 Subject: [PATCH] feat(monitoring): After some first analysis add cpu requests After checking the current CPU usage using the following metric: ```prometheus (sum(rate(container_cpu_usage_seconds_total{image!="",job="kubelet",metrics_path="/metrics/cadvisor", pod="prometheus-kube-prometheus-stack-prometheus-0"}[1m])) by (namespace, pod)) * 1000 ``` 800m seems quite good quite fitting when looking at the CPU usage of the past 2 weeks. This should help to keep all workload under control and produce better scheduling for everything. --- infrastructure/monitoring/release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/infrastructure/monitoring/release.yaml b/infrastructure/monitoring/release.yaml index 0c08e45cc..15b09af97 100644 --- a/infrastructure/monitoring/release.yaml +++ b/infrastructure/monitoring/release.yaml @@ -195,6 +195,7 @@ spec: replicas: 1 resources: requests: + cpu: 800m memory: 800Mi limits: memory: 2Gi -- GitLab