-
Notifications
You must be signed in to change notification settings - Fork 456
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
FEATURE requested : Add a command to get the global status of the pgbouncer server (paused or resumed) #528
Comments
The per-database pause mode can be seen in the output of |
Is there any difference between |
Yes, see here: https://github.com/pgbouncer/pgbouncer/blob/master/src/admin.c#L1071-L1088 |
So I see that the |
Thanks for your involvement. The issue we have faced is that we have a script (promote and follow) at one time which has launched a SIGUSR1 to the pgbouncer process but didn't launch the SIGUSR2 signal...The pgbouncer was blocked but didn't know that the SIGUSR1 was received by the pgbouncer. It's only in the log. So I thought it would be a good idea to have a command which shows that the pgbouncer is paused, what do you think ? |
This new command exposes the current PgBouncer state which can be: active, pause or suspend (see PauseMode). Although it is possible to obtain this state looking at SHOW DATABASES, you have to process multiple entries to discover the global state; it seems a fragile solution. PgBouncer has an internal variable that knows the current state so let's expose it. Closes pgbouncer#528
This new command exposes the current PgBouncer state which can be: active, pause or suspend (see PauseMode). Although it is possible to obtain this state looking at SHOW DATABASES, you have to process multiple entries to discover the global state; it seems a fragile solution. PgBouncer has an internal variable that knows the current state so let's expose it. Closes pgbouncer#528
This new command exposes PgBouncer states which are active, pause or suspend (see PauseMode). Although it is possible to obtain this state looking at SHOW DATABASES, you have to process multiple entries to discover the global state; it seems a fragile solution. PgBouncer has an internal variable that knows the current state so let's expose it. It shows one state per row so we have some room for additional states in the future. Closes pgbouncer#528
Hello |
This new command exposes PgBouncer states which are active, paused or suspended (see PauseMode). Although it is possible to obtain this state looking at SHOW DATABASES, you have to process multiple entries to discover the global state; it seems a fragile solution. PgBouncer has an internal variable that knows the current state so let's expose it. It shows one state per row so we have some room for additional states in the future. Closes pgbouncer#528
This new command exposes PgBouncer states which are active, paused or suspended (see PauseMode). Although it is possible to obtain this state looking at SHOW DATABASES, you have to process multiple entries to discover the global state; it seems a fragile solution. PgBouncer has an internal variable that knows the current state so let's expose it. It shows one state per row so we have some room for additional states in the future. Closes #528
Hello,
I try to find a command which indicates if a pgbouncer has been paused but didn't find : the only way is to look in the log file. Would it be possible to implement such command ? Thank you and best regards
The text was updated successfully, but these errors were encountered: