The instance profile CR represent the CPU and memory resources assigned to each Pod of the cluster.
CPU(s) (cores) used for every instance of a SGCluster. Please note that every StackGres pod contains not only the Patroni+Postgres container, but several other sidecar containers. While the majority of the resources are devoted to the main Postgres container, some CPU is needed for the sidecars.
The number of cores set is split between all the containers.
A minimum of 2 cores is recommended.
RAM allocated to every instance of a SGCluster. The suffix
The amount of RAM set is split between all the containers.
A minimum of 2-4Gi is recommended.
apiVersion: stackgres.io/v1 kind: SGInstanceProfile metadata: name: size-l spec: cpu: "4" memory: 8Gi