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
4711c57d
Commit
4711c57d
authored
Mar 18, 2020
by
Aric Buerer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix repmgr restore steps to avoid subsequent failures
parent
17765211
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
doc/administration/high_availability/database.md
doc/administration/high_availability/database.md
+28
-4
No files found.
doc/administration/high_availability/database.md
View file @
4711c57d
...
...
@@ -872,8 +872,9 @@ standby nodes.
If a node fails, it can be removed from the cluster, or added back as a standby
after it has been restored to service.
-
If you want to remove the node from the cluster, on any other node in the
cluster, run:
##### Remove a standby from the cluster
From any other node in the cluster, run:
```
shell
gitlab-ctl repmgr standby unregister
--node
=
X
...
...
@@ -893,13 +894,14 @@ after it has been restored to service.
959789412
```
Then you will use this
id
to unregister the node:
Then you will use this
ID
to unregister the node:
```
shell
gitlab-ctl repmgr standby unregister
--node
=
959789412
```
##### Add a node as a standby server
-
To add the node as a standby server
:
From the stnadby node, run
:
```
shell
gitlab-ctl repmgr standby follow NEW_MASTER
...
...
@@ -911,6 +913,28 @@ after it has been restored to service.
If there are any clients that are still attempting to write to the old master,
this will cause a split, and the old master will need to be resynced from
scratch by performing a
`gitlab-ctl repmgr standby setup NEW_MASTER`
.
##### Add a failed master back into the cluster as a standby node
Once
`repmgrd`
and PostgreSQL are runnning, the node will need to follow the new
as a standby node.
```
gitlab-ctl repmgr standby follow NEW_MASTER
```
Once the node is following the new master as a standby, the node needs to be
[
unregistered from the cluster on the new master node
](
#remove-a-standby-from-the-cluster
)
.
Once the old master node has been unregistered from the cluster, it will need
to be setup as a new standby:
```
gitlab-ctl repmgr standby setup NEW_MASTER
```
Failure to unregister and readd the old master node can lead to subsequent failovers
not working.
#### Alternate configurations
...
...
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