|
|
|
|
|
by cpburns2009
2941 days ago
|
|
I haven't used pgbouncer before but I plan on using either it or an alternative such as Odyssey in the future. What is the use case for multicore support? Is it many short lived connections, large result sets, or something else? |
|
Many solve this by running multiple instances of PGB (usually each on a dedicated processor) and use some kind of load balancing (haproxy, DNS, ...) to balance the connections.
This fork removes the need for the load balancing as it does it out of the box.
BTW this is only an issue if you’ve many connections to Postgres. We have thousands servers[0] connecting in and also run a citus[1] where the queries are distributed to many workers (with addition of citus MX that now allows each server to behave as a coordinator)[2].
At a small scale you are fine with the default postgres though.
[0] https://cloud.google.com/customers/pex/
[1] https://www.citusdata.com/customers/pex
[2] https://www.citusdata.com/blog/2016/09/22/announcing-citus-m...