36 Star 150 Fork 1

Gitee 极速下载 / gitlabhq

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/gitlabhq/gitlabhq
克隆/下载
remove_geo_site.md 2.06 KB
一键复制 编辑 原始数据 按行查看 历史
stage group info
Systems
Geo
To determine the technical writer assigned to the Stage/Group associated with this page, see https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments

Removing secondary Geo sites

DETAILS: Tier: Premium, Ultimate Offering: Self-managed

Secondary sites can be removed from the Geo cluster using the Geo administration page of the primary site. To remove a secondary site:

  1. On the left sidebar, at the bottom, select Admin Area.
  2. Select Geo > Nodes.
  3. For the secondary site you want to remove, select Remove.
  4. 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:

  1. Stop GitLab:

    sudo gitlab-ctl stop
  2. Uninstall GitLab:

    NOTE: 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:

  1. On the primary site's database node, start a PostgreSQL console session:

    sudo gitlab-psql

    NOTE: Using gitlab-rails dbconsole does not work, because managing replication slots requires superuser permissions.

  2. Find the name of the relevant replication slot. This is the slot that is specified with --slot-name when running the replicate command: gitlab-ctl replicate-geo-database.

    SELECT * FROM pg_replication_slots;
  3. Remove the replication slot for the secondary site:

    SELECT pg_drop_replication_slot('<name_of_slot>');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Ruby
1
https://gitee.com/mirrors/gitlab.git
git@gitee.com:mirrors/gitlab.git
mirrors
gitlab
gitlabhq
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891