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

vip-manager: cluster ip confusion (AWS) #292

Closed
prensgold opened this issue Mar 29, 2023 · 6 comments
Closed

vip-manager: cluster ip confusion (AWS) #292

prensgold opened this issue Mar 29, 2023 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@prensgold
Copy link

Hi Vitaliy ,

When I ran your scripts on the servers in my local, I could only see the cluster ip on one server.

In the screenshot below, the cluster ip output from the servers I set up in my own locale.

image

When I want to install and test your current script on amazon, I can see the cluster ip on all 3 servers.
and when I tried to connect to the database with port 5000 from each server, I was able to connect.

In the screenshot below, the cluster ip output from the servers I set up on amazon.

image

Cluster ip status confused me in two installations.
What is the correct output here? The operating systems are in the same version.
How can we interpret this situation?

@vitabaks
Copy link
Owner

vitabaks commented Mar 29, 2023

Hi @prensgold

Thanks!

I'm not sure, but maybe it's a bug in the vip-manager version 2.1.0

Have you deployed a new cluster on AWS? using etcd version 3.5.7 or do you have a different version?

Can you attach logs from all servers?

sudo journalctl -u vip-manager

@prensgold
Copy link
Author

yes , i installed version 3.5.7

image

@vitabaks
Copy link
Owner

an issue was created on the vip-manager project repository

cybertec-postgresql/vip-manager#147

@vitabaks
Copy link
Owner

Is there any news on this issue?

@vitabaks vitabaks added the help wanted Extra attention is needed label Aug 18, 2023
@vitabaks vitabaks changed the title cluster ip confusion vip-manager: cluster ip confusion (AWS) Aug 18, 2023
@vitabaks
Copy link
Owner

vitabaks commented Sep 1, 2023

AWS doesn't support sending of gratuitous ARP messages (none of the public hosters do, as you could try to impersonate another server easily), so vip-manager would not work with AWS.

cybertec-postgresql/vip-manager#147 (comment)

@vitabaks
Copy link
Owner

vitabaks commented Sep 1, 2023

Recommendations for cloud environments:

  • For the "Type A" scheme: Use DNS records (round-robin) listing all HAProxy load balancing servers instead of relying on cluster_vip.
  • For the "Type B" scheme: Use libpq target_session_attrs, ensuring read/write connections go to the primary database, as an alternative to cluster_vip.

@vitabaks vitabaks closed this as completed Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants