vitabaks / postgresql_cluster

PostgreSQL High-Availability Cluster (based on Patroni). Automating with Ansible.
https://postgresql-cluster.org
MIT License
1.77k stars 415 forks source link

your own machine hetzner #801

Open TrinityGale opened 4 days ago

TrinityGale commented 4 days ago

Hi I give 10.0.0.0.3 10.0.0.0.4 10.0.0.0.5 to the private ip addresses in your own server section to the server I opened before with vds in hetzner and 10.0.0.3 in Cluster VIP address section but it gives failed

vitabaks commented 4 days ago

Hi @TrinityGale try without a VIP address

Screenshot 2024-11-08 at 11 22 57 PM

Doc: https://postgresql-cluster.org/docs/deployment/your-own-machines

TrinityGale commented 4 days ago

thank you but now I get this error fatal: [10.0.0.5]: FAILED! => {"changed": false, "msg": "Unable to start service etcd: Job for etcd.service failed because the control process exited with error code.\nSee \"systemctl status etcd.service\" and \"journalctl -xeu etcd.service\" for details.\n"}

TrinityGale commented 4 days ago

I solved it, the hostnames must be different, how do I clean the operations logs? I have one more question, are the read and write ports different or does the haproxy redirect itself?

vitabaks commented 3 days ago

how do I clean the operations logs?

You can delete entries in the operations table in the console database, but why would you want to? The operations table is intended to serve as an audit log, recording all actions performed on the cluster.

vitabaks commented 3 days ago

are the read and write ports different or does the haproxy redirect itself?

Yes, different.

Your application must have support sending read requests to a custom address/port.

Doc: https://postgresql-cluster.org/docs/overview/architecture