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

Feature: HA Proxy: Direct connection to Primary and/or Replica (apart from pgbouncer) #548

Closed
jimnydev opened this issue Jan 9, 2024 · 4 comments

Comments

@jimnydev
Copy link
Contributor

jimnydev commented Jan 9, 2024

Prior to submitting a PR and considering a deployment with pgbouncer: I was wondering if you would find it useful to expose Primary and Replica nodes directly (skipping pgbouncer) in HA Proxy config (using two new ports)?

Use case would be for applications that need to connect using replication protocol (which currently isn't supported by pgbouncer, and is unlikely to be supported for a while).

Thanks!

@vitabaks
Copy link
Owner

vitabaks commented Jan 9, 2024

Just specify the variables when deploying the cluster:

with_haproxy_load_balancing: true

pgbouncer_install: false

In this case, the pgbouncer will not be installed, and connections via HAProxy will be routed directly to the database.

@jimnydev
Copy link
Contributor Author

jimnydev commented Jan 9, 2024

I would still like to have pgbouncer for connection pooling for other applications that are doing regular PostgreSQL protocol.

@vitabaks
Copy link
Owner

vitabaks commented Jan 9, 2024

Now I understand that you are interested in the possibility of launching "selected" connections without the participation of a puller in a scenario using pgbouncer.

This feature will require further development. Feel free to suggest a PR.

jimnydev added a commit to jimnydev/postgresql_cluster that referenced this issue Jan 10, 2024
jimnydev added a commit to jimnydev/postgresql_cluster that referenced this issue Jan 10, 2024
jimnydev added a commit to jimnydev/postgresql_cluster that referenced this issue Jan 10, 2024
jimnydev added a commit to jimnydev/postgresql_cluster that referenced this issue Jan 10, 2024
jimnydev added a commit to jimnydev/postgresql_cluster that referenced this issue Jan 11, 2024
@jimnydev
Copy link
Contributor Author

Resolved via #549. Thank you!

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

3 participants
@vitabaks @jimnydev and others