Skip to content

Commit 348759c

Browse files
more Acrolinx
1 parent 00088b8 commit 348759c

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ When enabled, PgBouncer runs on port 6432 on your database server. You can chang
2424
2525
## Enabling and configuring PgBouncer
2626

27-
In order to enable PgBouncer, you can navigate to the “Server Parameters” blade in the Azure portal, and search for “PgBouncer” and change the pgbouncer.enabled setting to “true” for PgBouncer to be enabled. There is no need to restart the server. However, to set other PgBouncer parameters, see the limitations section.
27+
In order to enable PgBouncer, you can navigate to the “Server Parameters” blade in the Azure portal, and search for “PgBouncer” and change the pgbouncer.enabled setting to “true” for PgBouncer to be enabled. There's no need to restart the server. However, to set other PgBouncer parameters, see the limitations section.
2828

2929
You can configure PgBouncer, settings with these parameters:
3030

@@ -34,26 +34,26 @@ You can configure PgBouncer, settings with these parameters:
3434
| pgBouncer.max_client_conn | Set this parameter value to the highest number of client connections to PgBouncer that you want to support. | 5000 |
3535
| pgBouncer.pool_mode | Set this parameter value to TRANSACTION for transaction pooling (which is the recommended setting for most workloads). | TRANSACTION |
3636
| pgBouncer.min_pool_size | Add more server connections to pool if below this number. | 0 (Disabled) |
37-
| pgbouncer.ignore_startup_parameters | Comma-separated list of parameters that PgBouncer can ignore. For example, you can let PgBouncer ignore `extra_float_digits` parameter. Some parameters are allowed, all others raise error. This is needed to tolerate overenthusiastic JDBC wanting to unconditionally set 'extra_float_digits=2' in startup packet. Use this if the library you use report errors such as `pq: unsupported startup parameter: extra_float_digits`. | |
38-
| pgbouncer.query_wait_timeout | Maximum time (in seconds) queries are allowed to spend waiting for execution. If the query is not assigned to a server during that time, the client is disconnected. | 120s |
37+
| pgbouncer.ignore_startup_parameters | Comma-separated list of parameters that PgBouncer can ignore. For example, you can let PgBouncer ignore `extra_float_digits` parameter. Some parameters are allowed, all others raise error. This ability is needed to tolerate overenthusiastic JDBC wanting to unconditionally set 'extra_float_digits=2' in startup packet. Use this option if the library you use report errors such as `pq: unsupported startup parameter: extra_float_digits`. | |
38+
| pgbouncer.query_wait_timeout | Maximum time (in seconds) queries are allowed to spend waiting for execution. If the query isn't assigned to a server during that time, the client is disconnected. | 120s |
3939
| pgBouncer.stats_users | Optional. Set this parameter value to the name of an existing user, to be able to log in to the special PgBouncer statistics database (named “PgBouncer”). | |
4040

41-
For more details on the PgBouncer configurations, see [pgbouncer.ini](https://www.pgbouncer.org/config.html).
41+
For more information about PgBouncer configurations, see [pgbouncer.ini](https://www.pgbouncer.org/config.html).
4242

4343
> [!IMPORTANT]
4444
> Upgrading of PgBouncer is managed by Azure.
4545
4646
## Benefits and Limitations of built-in PGBouncer feature
4747

48-
By leveraging the benefits of built-in PgBouncer with Flexible Server, users can enjoy the convenience of simplified configuration, the reliability of a managed service, support for various connection types, and seamless high availability during failover scenarios. Using built-in PGBouncer feature provides for following benefits:
49-
* As it's seamlessly integrated with Azure Database for PostgreSQL - Flexible Server service, there is no need for a separate installation or complex setup. It can be easily configured directly from the server parameters, ensuring a hassle-free experience.
48+
By using the benefits of built-in PgBouncer with Flexible Server, users can enjoy the convenience of simplified configuration, the reliability of a managed service, support for various connection types, and seamless high availability during failover scenarios. Using built-in PGBouncer feature provides for following benefits:
49+
* As it's seamlessly integrated with Azure Database for PostgreSQL - Flexible Server service, there's no need for a separate installation or complex setup. It can be easily configured directly from the server parameters, ensuring a hassle-free experience.
5050
* As a managed service, users can enjoy the advantages of other Azure managed services. This includes automatic updates, eliminating the need for manual maintenance and ensuring that PgBouncer stays up-to-date with the latest features and security patches.
51-
* The built-in PgBouncer in Flexible Server provides support for both public and private connections. This allows users to establish secure connections over private networks or connect externally, depending on their specific requirements.
52-
* In the event of a failover, where a standby server is promoted to the primary role, PgBouncer seamlessly restarts on the newly promoted standby without any changes required to the application connection string. This ensures continuous availability and minimizes disruption to the application's connection pool.
51+
* The built-in PgBouncer in Flexible Server provides support for both public and private connections. This functionality allows users to establish secure connections over private networks or connect externally, depending on their specific requirements.
52+
* In the event of a failover, where a standby server is promoted to the primary role, PgBouncer seamlessly restarts on the newly promoted standby without any changes required to the application connection string. This ability ensures continuous availability and minimizes disruption to the application's connection pool.
5353

5454
There are following limitations with using this feature today:
5555
* PgBouncer is currently not supported with Burstable server compute tier.
56-
* Transaction and statement connection pooling modes cannot be used along with prepared statements.
56+
* Transaction and statement connection pooling modes can't be used along with prepared statements.
5757
* Only a subset of configuration parameters is available with built-in PGBouncer vs. standalone product.
5858
* Whenever the server is restarted, the PgBouncer is also restarted along with the server. Hence, existing connections must be re-established.
5959

@@ -66,14 +66,14 @@ Azure Database for PostgreSQL - Flexible Server now provides six new metrics for
6666

6767
|Display Name |Metrics ID |Unit |Description |Dimension |Default enabled|
6868
|----------------------------------------|--------------------------|-----|-------------------------------------------------------------------------------------|------------|---------------|
69-
|**Active client connections** (Preview) |client_connections_active |Count|Connections from clients which are associated with a PostgreSQL connection |DatabaseName|No |
69+
|**Active client connections** (Preview) |client_connections_active |Count|Connections from clients that are associated with a PostgreSQL connection |DatabaseName|No |
7070
|**Waiting client connections** (Preview)|client_connections_waiting|Count|Connections from clients that are waiting for a PostgreSQL connection to service them|DatabaseName|No |
7171
|**Active server connections** (Preview) |server_connections_active |Count|Connections to PostgreSQL that are in use by a client connection |DatabaseName|No |
7272
|**Idle server connections** (Preview) |server_connections_idle |Count|Connections to PostgreSQL that are idle, ready to service a new client connection |DatabaseName|No |
7373
|**Total pooled connections** (Preview) |total_pooled_connections |Count|Current number of pooled connections |DatabaseName|No |
7474
|**Number of connection pools** (Preview)|num_pools |Count|Total number of connection pools |DatabaseName|No |
7575

76-
To learn more, please refer [pgbouncer metrics](./concepts-monitoring.md#pgbouncer-metrics)
76+
To learn more, see [pgbouncer metrics](./concepts-monitoring.md#pgbouncer-metrics)
7777

7878
### Admin Console
7979

@@ -98,7 +98,7 @@ For more details on the PgBouncer show command, please refer [Admin console](htt
9898
## Switching your application to use PgBouncer
9999

100100
In order to start using PgBouncer, follow these steps:
101-
1. Connect to your database server, but use port **6432** instead of the regular port 5432 -- verify that this connection works
101+
1. Connect to your database server, but use port **6432** instead of the regular port 5432--verify that this connection works
102102
```azurecli-interactive
103103
psql "host=myPgServer.postgres.database.azure.com port=6432 dbname=postgres user=myUser password=myPassword sslmode=require"
104104
```
@@ -121,10 +121,10 @@ Utilizing an application side pool together with PgBouncer on the database serve
121121
## Limitations
122122

123123
* PgBouncer is currently not supported with Burstable server compute tier.
124-
* If you change the compute tier from General Purpose or Memory Optimized to Burstable tier, you will lose the PgBouncer capability.
124+
* If you change the compute tier from General Purpose or Memory Optimized to Burstable tier, you lose the PgBouncer capability.
125125
* Whenever the server is restarted during scale operations, HA failover, or a restart, the PgBouncer is also restarted along with the server virtual machine. Hence the existing connections have to be re-established.
126-
* Due to a known issue, the portal does not show all PgBouncer parameters. Once you enable PgBouncer and save the parameter, you have to exit Parameter screen (for example, click Overview) and then get back to Parameters page.
127-
* Transaction and statement pool modes cannot be used along with prepared statements. Refer to the [PgBouncer documentation](https://www.pgbouncer.org/features.html) to check other limitations of chosen pool mode.
126+
* Due to a known issue, the portal doesn't show all PgBouncer parameters. Once you enable PgBouncer and save the parameter, you have to exit Parameter screen (for example, click Overview) and then get back to Parameters page.
127+
* Transaction and statement pool modes can't be used along with prepared statements. Refer to the [PgBouncer documentation](https://www.pgbouncer.org/features.html) to check other limitations of chosen pool mode.
128128

129129

130130
## Next steps

0 commit comments

Comments
 (0)