by pmwkaa on 5/30/18, 1:25 PM with 40 comments
by doh on 5/30/18, 2:56 PM
Shameless plug. We have recently forked pgbouncer to add multicore support[0]. We are running in production for couple of weeks and the performance is great.
Our design is very straightforward. Instead of touching the current code, we've extended it by a manager, that spins workers, which are essentially forks of pgbouncer itself (one per core, or whatever you specify in the settings), and then distributes the connections between the clients and the workers. So if you decide not to use the multiprocessing part, you can just turn it off and you will be running the same old pgbouncer you are used to. It also allows for the code to be merged to the original code base without any significant changes.
by nh2 on 5/30/18, 3:43 PM
That is, if you don't create a new DB connection for each HTTP request, but instead create one (or a few) connections at webserver startup time, which can serve all coming requests?
by kodablah on 5/30/18, 2:22 PM
by grillorafael on 5/30/18, 2:06 PM
by LoSboccacc on 5/30/18, 2:00 PM
that's my biggest issue with pgbouncer, is there a docker image for it?
by arvidkahl on 5/30/18, 4:11 PM
Connection Pooling as a Service, why does this not exist? What factors could cause this to be a bad idea? Need for proximity? Network speeds? Security?
by igammarays on 5/31/18, 2:45 AM
And no usage examples?