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
d6f30e8e
Commit
d6f30e8e
authored
Jan 02, 2020
by
Mike Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add canceled statements to Geo Troubleshooting doc
parent
4de7a9f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
doc/administration/geo/replication/troubleshooting.md
doc/administration/geo/replication/troubleshooting.md
+34
-0
No files found.
doc/administration/geo/replication/troubleshooting.md
View file @
d6f30e8e
...
...
@@ -318,6 +318,40 @@ Slots where `active` is `f` are not active.
SELECT
pg_drop_replication_slot
(
'<name_of_extra_slot>'
);
```
### Message: "ERROR: canceling statement due to conflict with recovery"
This error may rarely occur under normal usage, and the system is resilient
enough to recover.
However, under certain conditions, some database queries on secondaries may run
excessively long, which increases the frequency of this error. At some point,
some of these queries will never be able to complete due to being canceled
every time.
These long-running queries are
[
planned to be removed in the future
](
https://gitlab.com/gitlab-org/gitlab/issues/34269
)
,
but as a workaround, we recommend enabling
[
hot_standby_feedback
](
https://www.postgresql.org/docs/10/hot-standby.html#HOT-STANDBY-CONFLICT
)
.
This increases the likelihood of bloat on the
**primary**
node as it prevents
`VACUUM`
from removing recently-dead rows. However, it has been used
successfully in production on GitLab.com.
To enable
`hot_standby_feedback`
, add the following to
`/etc/gitlab/gitlab.rb`
on the
**secondary**
node:
```
ruby
postgresql
[
'hot_standby_feedback'
]
=
'on'
```
Then reconfigure GitLab:
```
sh
sudo
gitlab-ctl reconfigure
```
To help us resolve this problem, consider commenting on
[
the issue
](
https://gitlab.com/gitlab-org/gitlab/issues/4489
)
.
### Very large repositories never successfully synchronize on the **secondary** node
GitLab places a timeout on all repository clones, including project imports
...
...
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