Skip to content

Commit 76113cb

Browse files
committed
📚 Sync docs from alaudadevops/gitlab-ce-operator on e4a3942c9126686ba610a4c8a9a053cd902d12ca
Source: feat: upgrade gitlab to 18.2.8 Author: mingfu Ref: refs/heads/release-18.2 Commit: e4a3942c9126686ba610a4c8a9a053cd902d12ca This commit automatically syncs documentation changes from the source-docs repository. 🔗 View source commit: AlaudaDevops/gitlab-ce-operator@e4a3942 🤖 Synced on 2025-10-13 06:01:09 UTC
1 parent 5bf1c6a commit 76113cb

File tree

3 files changed

+702
-314
lines changed

3 files changed

+702
-314
lines changed

‎.github/SYNC_INFO.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Documentation Sync Information
22

3-
- **Last synced**: 2025-10-13 03:07:54 UTC
3+
- **Last synced**: 2025-10-13 06:01:09 UTC
44
- **Source repository**: alaudadevops/gitlab-ce-operator
5-
- **Source commit**: [2ec027ea77694df9791c3588886597891586fb39](https://github.com/alaudadevops/gitlab-ce-operator/commit/2ec027ea77694df9791c3588886597891586fb39)
5+
- **Source commit**: [e4a3942c9126686ba610a4c8a9a053cd902d12ca](https://github.com/alaudadevops/gitlab-ce-operator/commit/e4a3942c9126686ba610a4c8a9a053cd902d12ca)
66
- **Triggered by**: nanjingfm
7-
- **Workflow run**: [#38](https://github.com/alaudadevops/gitlab-ce-operator/actions/runs/18453925602)
7+
- **Workflow run**: [#39](https://github.com/alaudadevops/gitlab-ce-operator/actions/runs/18456578987)
88

99
## Files synced:
1010
- docs/
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# PostgreSQL Connection Limit Error
2+
3+
## Problem Description
4+
5+
Gitlab component logs (for example sidekiq, webservice, praefect) show database errors such as: `pq: sorry, too many clients already`
6+
7+
## Root Cause
8+
9+
Gitlab opened more concurrent PostgreSQL connections than the database allows (exceeded PostgreSQL `max_connections`).
10+
11+
## Troubleshooting
12+
13+
Check the logs of the Gitlab Deployments. Confirm if the `pq: sorry, too many clients already` error message is present.
14+
15+
```bash
16+
kubectl -n <NAMESPACE> logs <RELEASE>-praefect-xxxxx
17+
kubectl -n <NAMESPACE> logs <RELEASE>-sidekiq-all-in-1-v2-xxxxx
18+
kubectl -n <NAMESPACE> logs <RELEASE>-webservice-default-xxxxx
19+
```
20+
21+
## Solution
22+
23+
If PostgreSQL's `max_connections` is too low for your Gitlab scale, increase it on your PostgreSQL side. The exact steps depend on how you manage PG and are out of scope here.
24+
25+
You can use the following command to check PostgreSQL capacity and current usage:
26+
27+
```sql
28+
-- Show the global upper limit on concurrent connections allowed by this PostgreSQL instance.
29+
-- Note: the effective limit available to non-superusers ≈ max_connections - superuser_reserved_connections.
30+
SHOW max_connections;
31+
32+
-- Show how many connections are reserved for superusers,
33+
-- so administrators can still log in when all regular slots are taken.
34+
SHOW superuser_reserved_connections;
35+
36+
-- Count the total number of currently open backend connections across all databases and states
37+
-- (e.g., active, idle, idle in transaction, autovacuum, replication).
38+
SELECT count(*) AS current_connections FROM pg_stat_activity;
39+
```

0 commit comments

Comments
 (0)