[bitnami/postgresql] SHM: remove size limit on the emptyDir. (#6232)

The size of this emptyDir in memory flavor will count against your container's memory limit, so no need to have a separate limit.
A lot of parallel queries on huge workloads can be greater than 1GB.
This commit is contained in:
Cédric de Saint Martin
2021-04-29 09:40:50 +02:00
committed by GitHub
parent 66a8ea24f4
commit 1dbd2a2038
4 changed files with 7 additions and 2 deletions

View File

@@ -26,4 +26,4 @@ name: postgresql
sources:
- https://github.com/bitnami/bitnami-docker-postgresql
- https://www.postgresql.org/
version: 10.3.18
version: 10.4.0

View File

@@ -152,6 +152,7 @@ The following tables lists the configurable parameters of the PostgreSQL chart a
| `schedulerName` | Name of the k8s scheduler (other than default) | `nil` |
| `shmVolume.enabled` | Enable emptyDir volume for /dev/shm for primary and read replica(s) Pod(s) | `true` |
| `shmVolume.chmod.enabled` | Run at init chmod 777 of the /dev/shm (ignored if `volumePermissions.enabled` is `false`) | `true` |
| `shmVolume.sizeLimit` | Set size limit for /dev/shm | `nil` |
| `persistence.enabled` | Enable persistence using PVC | `true` |
| `persistence.existingClaim` | Provide an existing `PersistentVolumeClaim`, the value is evaluated as a template. | `nil` |
| `persistence.mountPath` | Path to mount the volume at | `/bitnami/postgresql` |

View File

@@ -573,7 +573,9 @@ spec:
- name: dshm
emptyDir:
medium: Memory
sizeLimit: 1Gi
{{- with .Values.shmVolume.sizeLimit }}
sizeLimit: {{ . }}
{{- end }}
{{- end }}
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
- name: data

View File

@@ -375,6 +375,8 @@ shmVolume:
##
chmod:
enabled: true
## Set this to enable a size limit on the shm tmpfs. Note that the size of the tmpfs counts against container's memory limit
# sizeLimit: 1Gi
## PostgreSQL data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>