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
be15a25f
Commit
be15a25f
authored
Jul 10, 2020
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify Patroni failover documentation
parent
8068bdb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
doc/administration/postgresql/replication_and_failover.md
doc/administration/postgresql/replication_and_failover.md
+16
-13
No files found.
doc/administration/postgresql/replication_and_failover.md
View file @
be15a25f
...
...
@@ -1250,24 +1250,27 @@ with:
sudo
gitlab-ctl stop patroni
```
###
F
ailover procedure for Patroni
###
Manual f
ailover procedure for Patroni
With Patroni, you have two slightly different options: failover and switchover. Essentially, failover allows you to
perform a manual failover when there are no healthy nodes, while switchover only works when the cluster is healthy and
allows you to schedule a switchover (it can happen immediately). For further details, see
[
Patroni documentation on this subject
](
https://patroni.readthedocs.io/en/latest/rest_api.html#switchover-and-failover-endpoints
)
.
While Patroni supports automatic failover, you also have the ability to perform
a manual one, where you have two slightly different options:
To schedule a switchover:
-
**Failover**
: allows you to perform a manual failover when there are no healthy nodes.
You can perform this action in any PostgreSQL node:
```
shell
sudo
gitlab-ctl patroni switch
over
```
```
shell
sudo
gitlab-ctl patroni fail
over
```
For manual failover:
-
**Switchover**
: only works when the cluster is healthy and allows you to schedule a switchover (it can happen immediately).
You can perform this action in any PostgreSQL node:
```
shell
sudo
gitlab-ctl patroni failover
```
```
shell
sudo
gitlab-ctl patroni switchover
```
For further details on this subject, see the
[
Patroni documentation
](
https://patroni.readthedocs.io/en/latest/rest_api.html#switchover-and-failover-endpoints
)
.
### Recovering the Patroni cluster
...
...
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