vitabaks / postgresql_cluster

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

README.md + info in vars/main.yml #512

Closed sgremyachikh closed 11 months ago

sgremyachikh commented 11 months ago

Доброго времени дня, Виталий. Спасибо вам за вашу большую работу в этом репозитории. В REDAME.md и vars/main.yml не было никакой информации о том как правильно развернуть кластер с использованием keepalived. В моем случае vip-manager не взлетел, а keepalived взлетел отлично. Пытаюсь восполнить пробел, для тех, кто так же пожелает воспользоваться этим вариантом.

In README.md and vars/main.yml I didn't find any information about properly deployment of cluster using keepalived. In my case, the vip-manager did not worked, but keepalived works perfectly. I'm trying to fill in the gap, for those who also wish to use this option.

vitabaks commented 11 months ago

Thank you. But keepalived is designed for a Type A scheme to ensure high availability of HAProxy and is not designed for a Type B scheme. Check the keepalived configuration there is a check of the pid of the haproxy process.

sgremyachikh commented 11 months ago

Is it better to move keepalived info description of Type A?

vitabaks commented 11 months ago

information about the keepalived has already been added for the 'Type A' schema.

https://github.com/vitabaks/postgresql_cluster/blob/master/README.md#type-a-postgresql-high-availability-with-haproxy-load-balancing