Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple PgBouncer processes using so_reuseport #234

Closed
vitabaks opened this issue Dec 28, 2022 · 1 comment
Closed

Support for multiple PgBouncer processes using so_reuseport #234

vitabaks opened this issue Dec 28, 2022 · 1 comment
Assignees
Labels
enhancement Improvement of the current functionality

Comments

@vitabaks
Copy link
Owner

vitabaks commented Dec 28, 2022

PgBouncer is single-threaded and uses one CPU core per instance. This option is a way to get PgBouncer to use more CPU cores.

Since version 1.12, PgBouncer supports the SO_REUSEPORT socket option, which allows running multiple instances of PgBouncer on the same host on the same port and they will share the connections.

Test: https://gitlab.com/postgres-ai/postgresql-consulting/tests-and-benchmarks/-/issues/5


Consider sponsoring the project via GitHub or Patreon

@vitabaks vitabaks self-assigned this Dec 28, 2022
@vitabaks vitabaks added the enhancement Improvement of the current functionality label Dec 28, 2022
@vitabaks vitabaks changed the title TODO: Support for multiple PgBouncer processes using so_reuseport Support for multiple PgBouncer processes using so_reuseport Oct 17, 2023
@vitabaks
Copy link
Owner Author

vitabaks commented Nov 7, 2023

Done #487

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of the current functionality
Projects
None yet
Development

No branches or pull requests

2 participants
@vitabaks and others