mirror of
https://github.com/bitnami/charts.git
synced 2026-03-09 07:27:18 +08:00
[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:
committed by
GitHub
parent
66a8ea24f4
commit
1dbd2a2038
@@ -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
|
||||
|
||||
@@ -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` |
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user