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

add user to pgb pool output (check_pgb_pool) #187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danstoner
Copy link

Since a pgBouncer pool is tied to a user+database pair, the previous
output was less useful with large numbers of users in a single database.

Adding the user to the output makes it clear which pool is associated
with which value.

The new output looks something like:

POSTGRES_PGB_POOL_CL_WAITING OK: DB "pgbouncer" (host:dbserver) (port=5432) django_web@django=0 * django_admin@django=0 django_reporting@django=0 * websiteuser@bigdatabase=0 * user1@bigdatabase=0 *user2@bigdatabase=0 * user3@bigdatabase=0 * badly_behaved_user@bigdatabase=3 | time=0.02s time=0.02s time=0.02s time=0.02s time=0.02s time=0.02s time=0.02s

Since a pgBouncer pool is tied to a user+database pair, the previous
output was less useful with large numbers of users in a single database.

Adding the user to the output makes it clear which pool is associated
with which value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant