[postgresql-ha] Use pgpool service as db connection proxy #542
Reference in New Issue
Block a user
No description provided.
Delete Branch "justusbunsi/helm-chart:fix-502"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description of the change
The
postgresql-haprovides a dedicated deployment and service calledpgpool. This application is a proxy that routes the db queries to the active database replica. There's a note about that in their README1 .Issue #502 is a side-effect of not using that proxy.
Possible drawbacks
Using the Charts' default configuration, the
pgpooldeployment has 1 replica, making this a single-point of failure. But users can change the relatedpostgresql-ha.pgpool.replicaCountto their needs.Applicable issues
Checklist
https://github.com/bitnami/charts/blob/main/bitnami/postgresql-ha/templates/postgresql/statefulset.yaml#introduction ↩︎
The build failed because the added test failed.
I wanted to verify that the build actually fails. Adding the actual fix now...
[postgresql-ha] Add tests ensuring correct renderingto [postgresql-ha] Use pgpool service as db connection proxyOh wow, another deep dive and 🚀 -like find of yours! 👏
That indeed all makes sense and should fix #502.
Also great to see the power of
helm-unittest- using it like this is really great.