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

PgBouncer: Connect via Unix socket instead of TCP/IP #498

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

vitabaks
Copy link
Owner

@vitabaks vitabaks commented Nov 8, 2023

This PR introduces an improvement to the PgBouncer configuration by switching the connection method to PostgreSQL from TCP/IP to Unix socket directory.
This change can improve performance by reducing latency, this is important for databases with a large number of high-frequency calls with a low latency requirement.

Example:

127.0.0.1 Unix socket Difference %
latency 3.585 ms 2.007 ms -44.02%
TPS 27474 47640 +73.40%

Details here and here

@vitabaks vitabaks added the enhancement Improvement of the current functionality label Nov 8, 2023
@vitabaks vitabaks self-assigned this Nov 8, 2023
@vitabaks vitabaks merged commit ccfb79a into master Nov 8, 2023
17 checks passed
@vitabaks vitabaks deleted the pgbouncer-unix-socket branch November 8, 2023 15:06
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

Successfully merging this pull request may close these issues.

1 participant