Skip to content

Commit 589d34d

Browse files
committed
chore(gen): update
1 parent 317b3dd commit 589d34d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tutorials/install-pgbouncer/index.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ categories:
1010
- instances
1111
- postgresql-and-mysql
1212
dates:
13-
validation: 2024-06-03
13+
validation: 2024-12-12
1414
posted: 2022-02-24
1515
---
1616

17-
PgBouncer is a connection pooler for PostgreSQL. It sits between the application and the PostgreSQL server. PgBouncer opens multiple connections to the database and serves it to the application. This reduces connection opening costs for the application and gives a performance boost.
17+
[PgBouncer](https://www.pgbouncer.org/) is a connection pooler for [PostgreSQL](https://www.postgresql.org/). It sits between the application and the PostgreSQL server. PgBouncer opens multiple connections to the database and serves it to the application. This reduces connection opening costs for the application and gives a performance boost.
1818

1919
There are three types of pooling modes:
2020
- Session: The server connection will be released back to the pool after the client disconnects. (Default pooling method.)
@@ -35,7 +35,7 @@ In this tutorial, you can choose the pooling mode that best suits your workload.
3535

3636
The **PostgreSQL Global Development Group (PGDG)** provides an apt repository. After importing the repository, you can install the PgBouncer package.
3737

38-
1. Import the PDGG repository signing key:
38+
1. Import the PGDG repository signing key:
3939
```
4040
sudo apt install curl ca-certificates
4141
sudo install -d /usr/share/postgresql-common/pgdg
@@ -133,7 +133,7 @@ Here are a few commands that can be used after connecting to the `pgbouncer` dat
133133

134134
## Doing an online restart
135135

136-
- You can do an online restart without terminating the connections. PgBouncer launches a new process and loads open sockets from running PgBouncer. After that, the old process is stopped and the new process resumes. This way, connections are not interrupted. This is very useful when upgrading PgBouncer.
136+
You can do an online restart without terminating the connections. PgBouncer launches a new process and loads open sockets from running PgBouncer. After that, the old process is stopped and the new process resumes. This way, connections are not interrupted. This is very useful when upgrading PgBouncer.
137137
```
138138
sudo -u postgres pgbouncer -R /etc/pgbouncer/pgbouncer.ini -d
139139
```
@@ -150,17 +150,17 @@ Here are a few commands that can be used after connecting to the `pgbouncer` dat
150150
max_client_conn = max_client_conn + (max pool_size * total databases * total users)
151151
```
152152

153-
- You may want to increase this number to 5 or 10. When the specified `pool_size` is not enough, it uses the reserved pool and logs it. It can be used to determine `pool_size`. (Default: 0)
153+
- You can set this value to 5 or 10. When the specified `pool_size` is not enough, it uses the reserved pool and logs it. It can be used to determine `pool_size`. (Default: 0)
154154
```
155155
reserve_pool_size = 10
156156
```
157157

158-
- Connecting to PostgreSQL through PgBouncer will mask the PostgreSQL IP. This setting adds the client host address and port to the application name. It is very helpful when troubleshooting. (Default: 0)
158+
- Connecting to PostgreSQL through PgBouncer will mask the PostgreSQL IP. This setting adds the client host address and port to the application name, which can be helpful when troubleshooting. (Default: 0)
159159
```
160160
application_name_add_host = 1
161161
```
162162

163-
- By default, PgBouncer reuses server connections in LIFO (last-in, first-out). If you are using a TCP load balancer with a round-robin behind the PostgreSQL IP address, you may want to enable `server_round_robin` to achieve higher performance. (Default: 1)
163+
- By default, PgBouncer reuses server connections in LIFO (last-in, first-out). If you are using a TCP load balancer with a round-robin behind the PostgreSQL IP address, enable `server_round_robin` to achieve higher performance. (Default: 1)
164164
```
165165
server_round_robin = 1
166166
```

0 commit comments

Comments
 (0)