Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a070475b
Commit
a070475b
authored
Jul 07, 2021
by
Hossein Pursultani
Committed by
Achilleas Pipinellis
Jul 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document PgBouncer session pooling for Praefect
parent
3786e987
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
197 additions
and
111 deletions
+197
-111
doc/administration/gitaly/index.md
doc/administration/gitaly/index.md
+1
-1
doc/administration/gitaly/praefect.md
doc/administration/gitaly/praefect.md
+182
-110
doc/administration/postgresql/pgbouncer.md
doc/administration/postgresql/pgbouncer.md
+14
-0
No files found.
doc/administration/gitaly/index.md
View file @
a070475b
...
@@ -175,7 +175,7 @@ Gitaly Cluster consists of multiple components:
...
@@ -175,7 +175,7 @@ Gitaly Cluster consists of multiple components:
-
[
Load balancer
](
praefect.md#load-balancer
)
for distributing requests and providing fault-tolerant access to
-
[
Load balancer
](
praefect.md#load-balancer
)
for distributing requests and providing fault-tolerant access to
Praefect nodes.
Praefect nodes.
-
[
Praefect
](
praefect.md#praefect
)
nodes for managing the cluster and routing requests to Gitaly nodes.
-
[
Praefect
](
praefect.md#praefect
)
nodes for managing the cluster and routing requests to Gitaly nodes.
-
[
PostgreSQL database
](
praefect.md#postgresql
)
for persisting cluster metadata and
[
PgBouncer
](
praefect.md#pgbouncer
)
,
-
[
PostgreSQL database
](
praefect.md#postgresql
)
for persisting cluster metadata and
[
PgBouncer
](
praefect.md#
use-
pgbouncer
)
,
recommended for pooling Praefect's database connections.
recommended for pooling Praefect's database connections.
-
Gitaly nodes to provide repository storage and Git access.
-
Gitaly nodes to provide repository storage and Git access.
...
...
doc/administration/gitaly/praefect.md
View file @
a070475b
This diff is collapsed.
Click to expand it.
doc/administration/postgresql/pgbouncer.md
View file @
a070475b
...
@@ -52,6 +52,20 @@ This content has been moved to a [new location](replication_and_failover.md#conf
...
@@ -52,6 +52,20 @@ This content has been moved to a [new location](replication_and_failover.md#conf
}
}
```
```
You can pass additional configuration parameters per database, for example:
```
ruby
pgbouncer
[
'databases'
]
=
{
gitlabhq_production:
{
...
pool_mode:
'transaction'
}
}
```
Use these parameters with caution. For the complete list of parameters refer to the
[
PgBouncer documentation
](
https://www.pgbouncer.org/config.html#section-databases
)
.
1.
Run
`gitlab-ctl reconfigure`
1.
Run
`gitlab-ctl reconfigure`
1.
On the node running Puma, make sure the following is set in
`/etc/gitlab/gitlab.rb`
1.
On the node running Puma, make sure the following is set in
`/etc/gitlab/gitlab.rb`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment