Removing secondary Geo nodes

原文:https://docs.gitlab.com/ee/administration/geo/replication/remove_geo_node.html

Removing secondary Geo nodes

可以使用节点的地理管理页面从地理集群中删除辅助节点. 删除辅助节点:

  1. 导航 管理区> 地理位置/admin/geo/nodes ).
  2. 单击要删除辅助节点的" 删除"按钮.
  3. 出现提示时,单击" 删除"进行确认.

从"地理管理员"页面中删除后,您必须停止并卸载辅助节点:

  1. 辅助节点上,停止 GitLab:

    sudo gitlab-ctl stop 
    1. 辅助节点上,卸载 GitLab:
    # 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 

辅助节点上卸载了 GitLab 之后,必须如下所示从节点的数据库中删除复制插槽:

  1. 节点上,启动 PostgreSQL 控制台会话:

    sudo gitlab-psql 

    注意:使用gitlab-rails dbconsole将不起作用,因为管理复制插槽需要超级用户权限.

  2. 查找相关复制插槽的名称. 这是运行复制命令gitlab-ctl replicate-geo-database时用--slot-name指定的插槽.

    SELECT * FROM pg_replication_slots; 
    1. 删除辅助节点的复制插槽:
    SELECT pg_drop_replication_slot('<name_of_slot>'); 
Copyright © 温玉 2021 | 浙ICP备2020032454号 all right reserved,powered by Gitbook该文件修订时间: 2021-03-27 13:48:25

results matching ""

    No results matching ""