Skip to content

Conversation

@PhilWaldmann
Copy link

Hello,

I've created a PR that provides a single Hetzner LB with multiple ports – instead of one LB for primary, replica, and other servers.
I'm still missing additions for AWS, Azure, and other servers. I'd like to know if the style/variable names are suitable for you.

Thanks,
Philipp

…hetzner load balancer with different ports to connect primary and replicas
@vitabaks
Copy link
Owner

Hi @PhilWaldmann! Thank you for your contribution.

I'm still missing additions for AWS, Azure, and other

It would be nice to work this out for other clouds in the future. Would you like to try to implement this?

Comment on lines 36 to 37
cloud_load_balancer_replica_port: 5433
cloud_load_balancer_sync_port: 5434
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should use the same ports as we do when using haproxy?

  master: 5000
  replicas: 5001
  replicas_sync: 5002
  replicas_async: 5003

@PhilWaldmann
Copy link
Author

I'll give it a try in the next few days!

@vitabaks vitabaks added enhancement Improvement of the current functionality automation Automation functionality using Ansible labels Jun 30, 2025
@vitabaks vitabaks changed the title Single Hetzner LB with multiple ports Single Cloud Load Balancer (LB) with multiple ports Jul 10, 2025
@PhilWaldmann
Copy link
Author

Hi, unfortunately it took a while.
I'm not sure if it's doable with AWS, Digitalocean and GCP - the health checks can't be configured per "service", so it would lose all its usefulness. I've just read the ansible docs for the relevant services.
Do you know if for example the aws classic LB is able to configure individual health checks per port?

@vitabaks
Copy link
Owner

I'll take a look at it a bit later.

@vitabaks vitabaks self-assigned this Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation Automation functionality using Ansible enhancement Improvement of the current functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants