Add support for huge pages
Huge pages are well supported and documented in Kubernetes: https://kubernetes.io/docs/tasks/manage-hugepages/scheduling-hugepages/.
We might want to expose this setting as part of the SGInstanceProfile
CRD, and let the user set the amount of HPs needs for the cluster. Then, he will just need to modify the postgresql.conf
parameter and set it to on
.
apiVersion: stackgres.io/v1
kind: SGInstanceProfile
spec:
hugePages:
hugepages-2Mi: <N>(Mi|Gi|Ti) # The amount of huge pages of size 2Mi to assign to the Patroni container
hugepages-1Gi: <N>(Mi|Gi|Ti) # The amount of huge pages of size 1Gi to assign to the Patroni container
Edited by Matteo Melli