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
switchover is happening to cluster but not the Virtual IP #564
Comments
Are you using a Type A or Type B scheme? |
Type A : PostgreSQL High-Availability with HAProxy Load Balancing
…________________________________
From: Vitaliy Kukharik ***@***.***>
Sent: Thursday, February 1, 2024 2:53 PM
To: vitabaks/postgresql_cluster ***@***.***>
Cc: Kumar Ashish ***@***.***>; Author ***@***.***>
Subject: Re: [vitabaks/postgresql_cluster] switchover is happening to cluster but not the Virtual IP (Issue #564)
[Email from a non-Nagarro source: please exercise caution with links and attachments]
Are you using a Type A or Type B scheme?
—
Reply to this email directly, view it on GitHub<#564 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVXUU3V7JZZ7HW6H3JZJ5Q3YRNNILAVCNFSM6AAAAABCUJGEZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRQHA3TKMZVGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@kumarashish071092 In the Type A scheme, the This, VIP will always be on one of the (working) load balancers, see haproxy_check |
so one question :
how can we ensure that our DNS(VIP) is pointing to the primary server only?
…________________________________
From: Vitaliy Kukharik ***@***.***>
Sent: Thursday, February 1, 2024 4:07 PM
To: vitabaks/postgresql_cluster ***@***.***>
Cc: Kumar Ashish ***@***.***>; Mention ***@***.***>
Subject: Re: [vitabaks/postgresql_cluster] switchover is happening to cluster but not the Virtual IP (Issue #564)
[Email from a non-Nagarro source: please exercise caution with links and attachments]
@kumarashish071092<https://github.com/kumarashish071092> In the Tour A scheme, the keepalived service is installed to ensure high availability of the HAProxy service and VIP is in no way related to the role of the database leader.
This, VIP will always be on one of the (working) load balancers, see haproxy_check<https://github.com/vitabaks/postgresql_cluster/blob/master/roles/keepalived/templates/keepalived.conf.j2#L7>
In addition, load balancers can be installed on servers separate from databases (optional).
—
Reply to this email directly, view it on GitHub<#564 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVXUU3XM2M52EKBTUEEJD5TYRNV5JAVCNFSM6AAAAABCUJGEZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRRGAYTIOBYGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@kumarashish071092 test it :) HAProxy is configured in such a way as to direct traffic only to the server on which the patroni Rest API confirms that it is primary. |
Hi Vitaliy,
I can see that using patronictl that in case of switchover the VIP is not getting assigned to the primary server automatically.
but virtual IP is pointing to the wrong IP:
what Parameters I need to change to handle this properly ?
The text was updated successfully, but these errors were encountered: