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
97cc36e6
Commit
97cc36e6
authored
Jul 21, 2021
by
Katrin Leinweber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Advise about "oldest xmin" and growing pg_wal
parent
c4fab3ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
doc/administration/geo/replication/troubleshooting.md
doc/administration/geo/replication/troubleshooting.md
+21
-0
No files found.
doc/administration/geo/replication/troubleshooting.md
View file @
97cc36e6
...
@@ -159,6 +159,27 @@ This machine's Geo node name matches a database record ... no
...
@@ -159,6 +159,27 @@ This machine's Geo node name matches a database record ... no
doc/administration/geo/replication/troubleshooting.md#can-geo-detect-the-current-node-correctly
doc/administration/geo/replication/troubleshooting.md#can-geo-detect-the-current-node-correctly
```
```
### Message: `WARNING: oldest xmin is far in the past` and `pg_wal` size growing
If a replication slot is inactive,
the
`pg_wal`
logs corresponding to the slot are reserved forever
(or until the slot is active again). This causes continuous disk usage growth
and the following messages appear repeatedly in the
[
PostgreSQL logs
](
../../logs.md#postgresql-logs
)
:
```
plaintext
WARNING: oldest xmin is far in the past
HINT: Close open transactions soon to avoid wraparound problems.
You might also need to commit or roll back old prepared transactions, or drop stale replication slots.
```
To fix this, do the following:
1.
[
Connect to the primary database
](
https://docs.gitlab.com/omnibus/settings/database.html#connecting-to-the-bundled-postgresql-database
)
.
1.
Run
`SELECT * FROM pg_replication_slots;`
.
1.
Note the
`slot_name`
that reports
`active`
as
`f`
(false).
1.
Follow
[
all these steps to remove that Geo site
](
remove_geo_site.md
)
.
## Fixing errors found when running the Geo check Rake task
## Fixing errors found when running the Geo check Rake task
When running this Rake task, you may see errors if the nodes are not properly configured:
When running this Rake task, you may see errors if the nodes are not properly configured:
...
...
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