New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bus error during database system initialization #1393
Comments
Update |
I came across this issue too. This comment spelled it out for me, but it took me a little while to figure out how to disable huge pages for patroni during the database initialisation step ( In the end I mounted a custom apiVersion: v1
kind: ConfigMap
metadata:
name: pg-init-config
data:
postgresql.conf.sample: "huge_pages = off"
---
# Reference: https://postgres-operator.readthedocs.io/en/latest/reference/cluster_manifest/
apiVersion: "acid.zalan.do/v1"
kind: postgresql
metadata:
...
spec:
...
postgresql:
parameters:
# Turn off huge pages.
# Only applies after db has been initialised
huge_pages: "off"
# Also force this setting to be applied to the db
# initialisation process (otherwise the process will fail
# with a bus error).
additionalVolumes:
- name: pg-init-config-9
mountPath: /usr/share/postgresql/9.6/postgresql.conf.sample
subPath: postgresql.conf.sample
volumeSource:
configMap:
name: pg-init-config
- name: pg-init-config-10
mountPath: /usr/share/postgresql/10/postgresql.conf.sample
subPath: postgresql.conf.sample
volumeSource:
configMap:
name: pg-init-config
- name: pg-init-config-11
mountPath: /usr/share/postgresql/11/postgresql.conf.sample
subPath: postgresql.conf.sample
volumeSource:
configMap:
name: pg-init-config
- name: pg-init-config-12
mountPath: /usr/share/postgresql/12/postgresql.conf.sample
subPath: postgresql.conf.sample
volumeSource:
configMap:
name: pg-init-config
- name: pg-init-config-13
mountPath: /usr/share/postgresql/13/postgresql.conf.sample
subPath: postgresql.conf.sample
volumeSource:
configMap:
name: pg-init-config
- name: pg-init-config-14
mountPath: /usr/share/postgresql/14/postgresql.conf.sample
subPath: postgresql.conf.sample
volumeSource:
configMap:
name: pg-init-config Hopefully this saves someone some time. A future step will be to figure out how to enable huge page support for my larger databases. Right now it looks like the |
Hi,
As there is is a K8s issue about huge pages, we turned off huge page in our installation. But we still meet bus error. Could you help?
I don't understand why huge_pages=off is not working.
POD configure for Patroni
POD resource
The text was updated successfully, but these errors were encountered: