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
01283c16
Commit
01283c16
authored
Feb 08, 2022
by
Michael Kozono
Committed by
Achilleas Pipinellis
Feb 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Geo definitions of site and node
Because I need to update this section.
parent
912285aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
14 deletions
+21
-14
doc/administration/geo/replication/troubleshooting.md
doc/administration/geo/replication/troubleshooting.md
+21
-14
No files found.
doc/administration/geo/replication/troubleshooting.md
View file @
01283c16
...
...
@@ -115,35 +115,39 @@ http://secondary.example.com/
To check if PostgreSQL replication is working, check if:
-
[
Nodes are pointing to the correct database instance
](
#are-nodes-pointing-to-the-correct-database-instanc
e
)
.
-
[
Geo can detect the current
node correctly
](
#can-geo-detect-the-current-nod
e-correctly
)
.
-
[
Sites are pointing to the correct database node
](
#are-sites-pointing-to-the-correct-database-nod
e
)
.
-
[
Geo can detect the current
site correctly
](
#can-geo-detect-the-current-sit
e-correctly
)
.
#### Are
nodes pointing to the correct database instanc
e?
#### Are
sites pointing to the correct database nod
e?
You should make sure your
**primary**
Geo
node points to the instance with
writing
permissions.
You should make sure your
**primary**
Geo
[
site
](
../glossary.md
)
points to
the database node that has write
permissions.
Any
**secondary**
nodes should point only to read-only instanc
es.
Any
**secondary**
sites should point only to read-only database nod
es.
#### Can Geo detect the current
nod
e correctly?
#### Can Geo detect the current
sit
e correctly?
Geo finds the current machine's Geo node name in
`/etc/gitlab/gitlab.rb`
by:
Geo finds the current Puma or Sidekiq node's Geo
[
site
](
../glossary.md
)
name in
`/etc/gitlab/gitlab.rb`
with the following logic:
-
Using the
`gitlab_rails['geo_node_name']`
setting.
-
If that is not defined, using the
`external_url`
setting.
1.
Get the "Geo node name" (there is
[
an issue to rename the settings to "Geo site name"
](
https://gitlab.com/gitlab-org/gitlab/-/issues/335944
)
):
-
Omnibus GitLab: Get the
`gitlab_rails['geo_node_name']`
setting.
-
GitLab Helm Charts: Get the
`global.geo.nodeName`
setting (see
[
Charts with GitLab Geo
](
https://docs.gitlab.com/charts/advanced/geo/index.html
)
).
1.
If that is not defined, then get the
`external_url`
setting.
This name is used to look up the
node with the same
**Name**
in the
**Geo Nod
es**
This name is used to look up the
Geo site with the same
**Name**
in the
**Geo Sit
es**
dashboard.
To check if the current machine has a
node name that matches a nod
e in the
To check if the current machine has a
site name that matches a sit
e in the
database, run the check task:
```
shell
sudo
gitlab-rake gitlab:geo:check
```
It displays the current machine's
nod
e name and whether the matching database
record is a
**primary**
or
**secondary**
nod
e.
It displays the current machine's
sit
e name and whether the matching database
record is a
**primary**
or
**secondary**
sit
e.
```
plaintext
This machine's Geo node name matches a database record ... yes, found a secondary node named "Shanghai"
...
...
@@ -158,6 +162,9 @@ This machine's Geo node name matches a database record ... no
doc/administration/geo/replication/troubleshooting.md#can-geo-detect-the-current-node-correctly
```
Learn more about recommended site names in the description of the Name field in
[
Geo Admin Area Common Settings
](
../../../user/admin_area/geo_nodes.md#common-settings
)
.
### Message: `WARNING: oldest xmin is far in the past` and `pg_wal` size growing
If a replication slot is inactive,
...
...
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