Open Jarch09 opened 2 years ago
it is not question about pgx or even kube. Every pg-user knows that because every single connection is new operation system process , connection use a lot resource. There is improvement in postgres 14 on this topic, which decreased degradation. But still, using connection pooler is recommended for production heavy load. However, for example we have postgres instance with more than 10k connections for test where performance is not important, and it works
Hi, n00b question here:
What is the recommended best practice for handling connection pooling with kube (so multiple containers all using the same DB)?
pgx
obviously has its own lightweight connection pool. Should DB access still be fronted withpgbouncer
?Seems somewhat clunky to have to define the application connection limits for 1 container based on your knowledge of how many other containers are also using that same DB... is there an elegant solution to this?