Commit be15a25f authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Clarify Patroni failover documentation

parent 8068bdb0
...@@ -1250,24 +1250,27 @@ with: ...@@ -1250,24 +1250,27 @@ with:
sudo gitlab-ctl stop patroni sudo gitlab-ctl stop patroni
``` ```
### Failover procedure for Patroni ### Manual failover procedure for Patroni
With Patroni, you have two slightly different options: failover and switchover. Essentially, failover allows you to While Patroni supports automatic failover, you also have the ability to perform
perform a manual failover when there are no healthy nodes, while switchover only works when the cluster is healthy and a manual one, where you have two slightly different options:
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).
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 ```shell
sudo gitlab-ctl patroni switchover sudo gitlab-ctl patroni failover
``` ```
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 ```shell
sudo gitlab-ctl patroni failover 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 ### Recovering the Patroni cluster
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment