-
Notifications
You must be signed in to change notification settings - Fork 176
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
[BUG] Postgresql cluster is always Creating status when new create #8183
Comments
hi @taylor840326 , thanks for reporting the bug. We fill fix is ASAP. |
Hi @taylor840326, I tried to reproduce this issue but was unable to do so. I suspect that there might have been a problem during |
|
Are there more logs? |
Hi @ldming ,I have solved this problem. The reason is that “Huge Page“ causes the database command execute failure initdb
... Bus error ... I create a cluster using the following command. Add "limits.hugepages-2Mi=1024Mi" parameter cat <<EOF | kubectl apply -f -
apiVersion: apps.kubeblocks.io/v1alpha1
kind: Cluster
metadata:
name: psql16
namespace: demo
spec:
clusterDefinitionRef: postgresql
clusterVersionRef: postgresql-16.4.0
terminationPolicy: Delete
affinity:
podAntiAffinity: Preferred
topologyKeys:
- kubernetes.io/hostname
tolerations:
- key: kb-data
operator: Equal
value: 'true'
effect: NoSchedule
componentSpecs:
- name: postgresql
componentDefRef: postgresql
enabledLogs:
- running
disableExporter: true
replicas: 2
resources:
limits:
cpu: '0.5'
memory: 0.5Gi
hugepages-2Mi: 1024Mi
requests:
cpu: '0.5'
memory: 0.5Gi
volumeClaimTemplates:
- name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
EOF
refer to: https://www.percona.com/blog/using-huge-pages-with-postgresql-running-inside-kubernetes/ |
Describe the bug
Postgresql cluster is always Creating status.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Postgresql cluster status is Running.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: