Commit 62045bea authored by Nick Nguyen's avatar Nick Nguyen Committed by Achilleas Pipinellis

Add steps to use existing Patroni cluster as a secondary

parent 43a11106
...@@ -735,10 +735,22 @@ For each Patroni instance on the secondary site: ...@@ -735,10 +735,22 @@ For each Patroni instance on the secondary site:
``` ```
1. Reconfigure GitLab for the changes to take effect. 1. Reconfigure GitLab for the changes to take effect.
This is required to bootstrap PostgreSQL users and settings: This is required to bootstrap PostgreSQL users and settings.
- If this is a fresh installation of Patroni:
```shell
gitlab-ctl reconfigure
```
- If you are configuring a Patroni standby cluster on a site that previously had a working Patroni cluster:
```shell ```shell
gitlab-ctl stop patroni
rm -rf /var/opt/gitlab/postgresql/data
/opt/gitlab/embedded/bin/patronictl -c /var/opt/gitlab/patroni/patroni.yaml remove postgresql-ha
gitlab-ctl reconfigure gitlab-ctl reconfigure
gitlab-ctl start patroni
``` ```
### Migrating from repmgr to Patroni ### Migrating from repmgr to Patroni
......
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