Replies: 1 comment 3 replies
-
I use CNPG on k3s at Hetzner, with Longhorn, and works well in terms of performance.
See https://cloudnative-pg.io/documentation/current/storage/#block-storage-considerations-cephlonghorn You would need a server type for the worker nodes that has enough local storage for your database size... possibly cx42? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to run a highly available database on my k3s cluster. I was thinking of https://cloudnative-pg.io/. I'm just wondering what the best way to run a database on the Hetzner stack is. Node storage would be best, but Hetzner tends to expand storage using Hetzner Volumes, which means the servers have little storage space. I currently have a Postgres setup that is a bit slow:
apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: db namespace: prod spec: instances: 3 storage: storageClass: hcloud-volumes size: 50Gi superuserSecret: name: db-superuser enableSuperuserAccess: true
How could I optimize it? Or should I take a completely different approach?
Thanks a lot in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions