Update limits for cpng-keycloak pods

Summary

Memory

https://gitlab.com/sylva-projects/sylva-core/-/blob/main/kustomize-units/keycloak-postgres/cnpg-cluster.yaml?ref_type=heads#L14 specify 4Gi Memory requests/limits, but the actual usage is very low. 3 x 4Gi reserved leads to Kubernetes cluster memory overcommiting and other workloads cannot be scheduled

image

(1Gi requests is shown here as I've edited the statefulset so other pods can be scheduled)

The requests/limits should be updated after determining the real world needs of these pods

      shared_buffers: "1GB"

and other settings might need updating

CPU

Similarly for CPU

image

Storage

The pvc request size for 20Gi is also quite high for the actual usage:

/dev/vdb                       20G  612M   19G   4% /var/lib/postgresql/data

The original db size was 8Gi.

Edited Jan 03, 2025 by Mihai Zaharia
Assignee Loading
Time tracking Loading