Skip to content

Commit 739f387

Browse files
dots
1 parent 694a76d commit 739f387

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

articles/postgresql/flexible-server/concepts-pgbouncer.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@ Azure Database for PostgreSQL - Flexible Server now provides six new metrics for
6666
|**Total pooled connections** (Preview) |total_pooled_connections |Count|Current number of pooled connections |DatabaseName|No |
6767
|**Number of connection pools** (Preview)|num_pools |Count|Total number of connection pools |DatabaseName|No |
6868

69-
To learn more, see [pgbouncer metrics](./concepts-monitoring.md#pgbouncer-metrics)
69+
To learn more, see [pgbouncer metrics](./concepts-monitoring.md#pgbouncer-metrics).
7070

7171
### Admin Console
7272

7373
PgBouncer also provides an **internal** database that you can connect to called `pgbouncer`. Once connected to the database you can execute `SHOW` commands that provide information on the current state of pgbouncer.
7474

7575
Steps to connect to `pgbouncer` database
7676
1. Set `pgBouncer.stats_users` parameter to the name of an existing user (ex. "myUser"), and apply the changes.
77-
1. Connect to `pgbouncer` database as this user and port as `6432`
77+
1. Connect to `pgbouncer` database as this user and port as `6432`.
7878

7979
```sql
8080
psql "host=myPgServer.postgres.database.azure.com port=6432 dbname=pgbouncer user=myUser password=myPassword sslmode=require"
8181
```
8282

83-
Once connected, use **SHOW** commands to view pgbouncer stats
83+
Once connected, use **SHOW** commands to view pgbouncer stats:
8484
* `SHOW HELP` - list all the available show commands
8585
* `SHOW POOLS` — show number of connections in each state for each pool
8686
* `SHOW DATABASES` - show current applied connection limits for each database
@@ -91,10 +91,12 @@ For more details on the PgBouncer show command, please refer [Admin console](htt
9191
## Switching your application to use PgBouncer
9292

9393
In order to start using PgBouncer, follow these steps:
94-
1. Connect to your database server, but use port **6432** instead of the regular port 5432--verify that this connection works
95-
```azurecli-interactive
96-
psql "host=myPgServer.postgres.database.azure.com port=6432 dbname=postgres user=myUser password=myPassword sslmode=require"
97-
```
94+
1. Connect to your database server, but use port **6432** instead of the regular port 5432--verify that this connection works.
95+
96+
```azurecli-interactive
97+
psql "host=myPgServer.postgres.database.azure.com port=6432 dbname=postgres user=myUser password=myPassword sslmode=require"
98+
```
99+
98100
2. Test your application in a QA environment against PgBouncer, to make sure you don’t have any compatibility problems. The PgBouncer project provides a compatibility matrix, and we recommend using **transaction pooling** for most users: https://www.PgBouncer.org/features.html#sql-feature-map-for-pooling-modes.
99101
3. Change your production application to connect to port **6432** instead of **5432**, and monitor for any application side errors that may point to any compatibility issues.
100102

0 commit comments

Comments
 (0)