Removing secondary Geo sites
Secondary sites can be removed from the Geo cluster using the Geo administration page of the primary site. To remove a secondary site:
- On the top bar, select Main menu > Admin.
- On the left sidebar, select Geo > Nodes.
- For the secondary site you want to remove, select Remove.
- Confirm by selecting Remove when the prompt appears.
After the secondary site is removed from the Geo administration page, you must stop and uninstall this site. For each node on your secondary Geo site:
sudo gitlab-ctl stop
Uninstall GitLab:If GitLab data has to be cleaned from the instance as well, see how to uninstall the Linux package and all its data.
# Stop gitlab and remove its supervision process sudo gitlab-ctl uninstall # Debian/Ubuntu sudo dpkg --remove gitlab-ee # Redhat/Centos sudo rpm --erase gitlab-ee
When GitLab has been uninstalled from each node on the secondary site, the replication slot must be dropped from the primary site’s database as follows:
On the primary site’s database node, start a PostgreSQL console session:
gitlab-rails dbconsoledoes not work, because managing replication slots requires superuser permissions.
Find the name of the relevant replication slot. This is the slot that is specified with
--slot-namewhen running the replicate command:
SELECT * FROM pg_replication_slots;
Remove the replication slot for the secondary site: