percona / roadmap

Public Percona Roadmaps
10 stars 1 forks source link

[K8SPG-154] pgbouncer - leverage multiple standby nodes for reads #96

Open spron-in opened 1 year ago

spron-in commented 1 year ago

Community Note

Tell us about the feature

Right now the setup that we have is the following:

  1. pgBouncer (connection pooler) points to Primary node of the cluster

    • all reads and writes go to one node
  2. we also have replicas Kubernetes Service that points to Replica nodes of the cluster, but these connections are not pooled

 

The problem here, is that users cannot leverage scaling capabilities of PostgreSQL cluster on Kubernetes in full, cause connections to replicas are not pooled. 

We need to come up with the design and implement it, that is going to provide easy failover and scalability for PostgreSQL on Kubernetes.

 

[~hamid.akhtar] is researching the approach that we are using on non-Kubernetes environments.

Link to JIRA