Skip to content
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

Closed
kumarashish071092 opened this issue Feb 1, 2024 · 5 comments
Closed

Comments

@kumarashish071092
Copy link

Hi Vitaliy,

I can see that using patronictl that in case of switchover the VIP is not getting assigned to the primary server automatically.

image

but virtual IP is pointing to the wrong IP:

image

what Parameters I need to change to handle this properly ?

@vitabaks
Copy link
Owner

vitabaks commented Feb 1, 2024

Are you using a Type A or Type B scheme?

@kumarashish071092
Copy link
Author

kumarashish071092 commented Feb 1, 2024 via email

@vitabaks
Copy link
Owner

vitabaks commented Feb 1, 2024

@kumarashish071092 In the Type 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. See components of load balancing

image

This, VIP will always be on one of the (working) load balancers, see haproxy_check
In addition, load balancers can be installed on servers separate from databases (optional).

@kumarashish071092
Copy link
Author

kumarashish071092 commented Feb 1, 2024 via email

@vitabaks
Copy link
Owner

vitabaks commented Feb 3, 2024

how can we ensure that our DNS(VIP) is pointing to the primary server only?

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants