UiPath Documentation
automation-suite
2023.4
false
Linux 版 Automation Suite 安装指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

Disaster Recovery - 安装辅助集群

要在主动/被动部署中安装辅助 Automation Suite 集群,请执行以下步骤。

  1. Generate or copy the cluster_config.json file from the primary Automation Suite cluster to one of the nodes identified as the server in the secondary Automation Suite cluster. For more details, see Generating or copying the cluster_config.json of the primary cluster.
  2. 使用特定于辅助 Automation Suite 集群的参数更新 cluster_config.json 文件。
  3. 继续安装 Automation Suite。
  4. 关闭不活动的产品。

生成或复制主集群的 cluster_config.json​

生成新的 cluster_config.json 文件或从主集群复制该文件。

  1. 登录到任意服务器节点并成为根用户:

    ssh <username>@<machine_ip>
    
    sudo su -
    
    export PATH=$PATH:/var/lib/rancher/rke2/bin
    export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
    ssh <username>@<machine_ip>
    
    sudo su -
    
    export PATH=$PATH:/var/lib/rancher/rke2/bin
    export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
    
  2. 如果没有 cluster_config.json 文件,请生成此文件:

    ./configureUiPathAS.sh config get -o /path/to/new/cluster_config.json
    ./configureUiPathAS.sh config get -o /path/to/new/cluster_config.json
    
  3. 将 cluster_config.json 文件复制到辅助集群中的服务器节点:

    scp /path/to/new/cluster_config.json <username>@<primary_machine_ip>:<username>@<secondary_machine_ip>
    scp /path/to/new/cluster_config.json <username>@<primary_machine_ip>:<username>@<secondary_machine_ip>
    

更新 cluster_config.json ​

使用特定于辅助 Automation Suite 集群的参数更新 cluster_config.json 文件,具体操作步骤如下所示:

  1. 关闭不支持的产品。

    将多站点中不支持的所有产品设置为 false。

    {
      "test_manager": {
        "enabled": false
      },
      "process_mining": {
        "enabled": false
      },
      "automation_hub": {
        "enabled": false
      },
      "insights": {
        "enabled": false
      }
    }
    {
      "test_manager": {
        "enabled": false
      },
      "process_mining": {
        "enabled": false
      },
      "automation_hub": {
        "enabled": false
      },
      "insights": {
        "enabled": false
      }
    }
    
  2. 生成主集群的 kubeconfig。要访问辅助集群在主集群上完成的一些配置,这是必要操作。要获取具有与 Disaster Recovery 相关的有限权限的 kubeconfig 文件,请运行以下命令:

    ./configureUiPathAS.sh kubeconfig get --multisite
    ./configureUiPathAS.sh kubeconfig get --multisite
    

    复制命令输出的值。在下一步中需要此值。

  3. Update the cluster_config.json file with the parameters specific to the secondary cluster. For details, see Advanced installation experience.

  4. 为 rke_token 生成新的 GUID,以防止辅助集群加入主集群。为此,请运行以下命令:

    LC_CTYPE=C tr </dev/urandom -dc '!@#$%q_A-Z-a-z-0-9' | head -c 16
    LC_CTYPE=C tr </dev/urandom -dc '!@#$%q_A-Z-a-z-0-9' | head -c 16
    

Resuming the installation​

在 cluster_config.json 中提供或修改上一步中的参数后,您可以按照文档中的后续步骤继续安装。

备注:

您必须使用install-uipath.sh安装程序执行 Automation Suite 安装。 这意味着您可以跳过默认安装说明,并按照高级安装步骤进行操作。

请注意,您不需要生成新的cluster_config.json 。

关闭不活动的产品​

您可以使用以下命令缩小集群并关闭不活动的产品:

./configureUiPathAS.sh products scale-down
./configureUiPathAS.sh products scale-down

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新