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

准备新集群

准备目标集群配置并迁移数据,以在 Automation Suite 中进行并行升级。

准备 cluster_config.json 文件

备注:

启动导出-导入流程后,不得修改源集群。

要准备 cluster_config.json 文件,请执行以下步骤:

  1. 通过运行以下命令之一,在源集群上生成 cluster_config.json 文件:

    1. 如果从 2023.10.0 之前的版本升级,请使用以下选项:

      • 选项 A :如果您已有可用的cluster_config.json文件,请导航到最新的安装程序文件夹并运行以下命令来获取该文件:

        cd /opt/UiPathAutomationSuite/latest/installer
        
        ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o /opt/UiPathAutomationSuite/cluster_config.json
        cd /opt/UiPathAutomationSuite/latest/installer
        
        ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o /opt/UiPathAutomationSuite/cluster_config.json
        
      • 选项 B :如果您没有可用的cluster_config.json文件,请导航到最新的安装程序文件夹并运行以下命令,以生成该文件:

        cd /opt/UiPathAutomationSuite/{version}/installer
        
        ./configureUiPathAS.sh config get -o /opt/UiPathAutomationSuite/cluster_config.json
        cd /opt/UiPathAutomationSuite/{version}/installer
        
        ./configureUiPathAS.sh config get -o /opt/UiPathAutomationSuite/cluster_config.json
        
    2. 如果从 2023.10.0 或更高版本升级,请导航到最新的安装程序文件夹并运行以下命令,以生成配置文件:

      ./bin/uipathctl manifest get-revision >> ./cluster_config.json
      ./bin/uipathctl manifest get-revision >> ./cluster_config.json
      
    3. 如果选择了并行升级(单节点启动)模型,请在cluster_config.json文件中设置或编辑以下字段。

      {
      ....
      "profile": "default",
      "fault_tolerance": 0,
      ...
      }
      {
      ....
      "profile": "default",
      "fault_tolerance": 0,
      ...
      }
      
  2. 从源集群中复制 cluster_config.json 文件,并将其放置在目标集群中:

    scp cluster_config.json user@target_cluster_IP /foo/bar
    scp cluster_config.json user@target_cluster_IP /foo/bar
    

    确保将/foo/bar替换为目标集群上的目录路径。

  3. 请执行以下操作:

    1. 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
      
    2. 根据目标集群的需要更新临时 FQDN、SQL Server 或其他配置。
    3. 使用新值相应地更新cluster_config.json文件。
      • 您可以使用任何文本编辑器来修改 cluster_config.json 文件。
      • 可选外部对象存储:如果要更改外部对象存储的任何设置,请提供该外部对象存储。
      • 您需要为AutomationSuite_Airflow提供 PostgreSQL 数据库,并在cluster_config.json中配置其连接字符串。
重要提示:

为确保在发生故障时即时回滚,您必须使用与源集群不同的资源,如下所示:

  • 您必须为新的目标集群引入不同的 SQL 数据库。
  • 您必须为新的目标集群引入不同的外部对象存储桶。
备注:

作为并行升级过程的一部分,我们目前不支持从集群内对象存储迁移到外部对象存储。要在新环境中使用外部对象存储,您必须在开始并行升级之前或完成之后迁移到外部对象存储。

安装新集群

要安装新集群,请执行以下步骤:

  1. 遵循准备安装说明,在新的目标集群上安装基础架构,并提及,在这种情况下,您需要跳过“完成安装”步骤。

  2. 如果使用集群内对象存储,则必须通过运行以下命令来安装导入所需的集群内对象存储:

    ./bin/uipathctl manifest apply /opt/UiPathAutomationSuite/cluster_config.json --override argocd --versions versions/helm-charts.json
    ./bin/uipathctl manifest apply /opt/UiPathAutomationSuite/cluster_config.json --override argocd --versions versions/helm-charts.json
    
重要提示:

仅在迁移数据后,才能完成服务的安装。

  • 准备 cluster_config.json 文件
  • 安装新集群

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新