Automation Suite
2023.10
False
横幅背景图像
Linux 版 Automation Suite 安装指南
上次更新日期 2024年4月19日

Disaster Recovery - 安装辅助集群

To install the secondary Automation Suite cluster in an Active/Passive or Active/Active deployment, take the following steps.

  1. 生成 cluster_config.json 文件,将其从主 Automation Suite 集群复制到辅助 Automation Suite 集群中标识为服务器的节点之一。有关更多详细信息,请参阅生成或复制主集群的 cluster_config.json
  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.yamlssh <username>@<machine_ip>
    
    sudo su -
    
    export PATH=$PATH:/var/lib/rancher/rke2/bin
    export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
  2. 如果没有 cluster_config.json 文件,请生成此文件:
    uipathctl manifest get-revision >> /path/to/new/cluster_config.jsonuipathctl manifest get-revision >> /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
        }
      }
    • 对于主动/主动配置,请禁用除 Orchestrator 以外的所有产品。

    备注:
    确保启用platform服务,如以下示例所示:
    "platform": {
        "enabled": true
      },  "platform": {
        "enabled": true
      },
  2. 生成主集群的 kubeconfig。要访问辅助集群在主集群上完成的一些配置,这是必要操作。要获取具有与 Disaster Recovery 相关的有限权限的 kubeconfig 文件,请运行以下命令:
    ./configureUiPathAS.sh kubeconfig get --multisite./configureUiPathAS.sh kubeconfig get --multisite

    Copy the value provided in the command output. This value is required in the next step.

  3. 使用特定于辅助集群的参数更新 cluster_config.json 文件。有关更多详细信息,请参阅高级安装体验
  4. Generate a new GUID for rke_token to prevent the secondary cluster from joining the primary cluster. To do that, run the following command:
    LC_CTYPE=C tr </dev/urandom -dc '!@#$%q_A-Z-a-z-0-9' | head -c 16LC_CTYPE=C tr </dev/urandom -dc '!@#$%q_A-Z-a-z-0-9' | head -c 16

继续安装。

cluster_config.json 中提供或修改上一步中的参数后,您可以按照安装 Automation Suite 中的说明继续安装。
备注:
您必须使用install-uipath.sh安装程序执行 Automation Suite 安装。 请注意,您不需要生成新的cluster_config.json

关闭不活动的产品

如果您在主动/被动模式下部署了 Automation Suite,则可以使用以下命令缩小集群并关闭不活动的产品。 如果您选择主动/主动设置,则不需要此步骤。

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

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.