Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Customize shm size in postgres pod (#567)
By default shm size is 64MB, *dashboard usage* page uses around 100MB. I can reproduce the error described in packit/packit-service#2385 locally using podman compose and I can fix it by setting `shm_size: 128Mi` in `docker-compose.yml`. I tried deploying these openshift changes on my local openshift cluster but even though the new volume is created and mapped the size didn't change. `df -h /dev/shm` is always 64MB I would like to test this on stg, to be sure the problem is not related with my local openshift cluster. But, as far as I can understand it, does exist a `SizeMemoryBackedVolumes` k8s *feature gate*, which is not enabled in the cluster by default (probably because this is a dangerous feature kubernetes/kubernetes#119611). If this is not enabled in the cluster, resizing can not occur. If this PR will not work on stg I think we have 2 solutions: - ask to the cluster's maintainers if they have a way to increase shared memory for our pod - redesign db queries in usage page
- Loading branch information