Commit e53be38e authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'nhxnguyen-docs-333409' into 'master'

Add steps to use existing Patroni cluster as a secondary

See merge request gitlab-org/gitlab!64247
parents 5ef79794 62045bea
...@@ -735,11 +735,23 @@ For each Patroni instance on the secondary site: ...@@ -735,11 +735,23 @@ 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.
```shell - If this is a fresh installation of Patroni:
gitlab-ctl reconfigure
``` ```shell
gitlab-ctl reconfigure
```
- If you are configuring a Patroni standby cluster on a site that previously had a working Patroni cluster:
```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 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