Automation Suite
2023.10
False
将数据迁移到新集群 - Automation Suite 2023.10
徽标
Linux 版 Automation Suite 安装指南
上次更新日期 2023年12月4日

将数据迁移到新集群

仅限离线

  1. 将源集群上运行的 Docker 注册表与您计划升级到的版本对应的捆绑包结合使用。确保在您在 /uipath 装载点上将 UiPath 捆绑包磁盘附加到其中的源集群的服务器计算机上下载 as.tar.gz。首选位置为 /uipath/<new_version>/as.tar.gz

  2. 创建一个临时位置以解压缩捆绑包。

    mkdir -p /uipath/tmpmkdir -p /uipath/tmp
  3. 将源集群 Docker 注册表与最新的离线捆绑包结合使用。

    ./configureUipathAS.sh registry upload --offline-bundle /uipath/<new_version>/as.tar.gz --offline-tmp-folder /uipath/tmp./configureUipathAS.sh registry upload --offline-bundle /uipath/<new_version>/as.tar.gz --offline-tmp-folder /uipath/tmp
备注:

您可以在将集群置于维护模式之前运行数据迁移脚本,以减少停机期间的迁移时间。

克隆源集群数据库

重要提示:
  • You can allow the installer to create the new databases with the default names during the infrastructure and fabric installation. For details, see Configuring the Microsoft SQL Server.

  • If your database names are different, you must delete the databases created by the installer, copy the databases from the source SQL Server to the new SQL Server, and retain the database names.

  • If you choose to change the name of the database in the new SQL Server, you must carefully edit the cluster_config.json file for each product you install.

  1. 确保在源集群上获取新的安装程序,以将数据迁移到新的目标集群。请按照下载安装包并在计划触发迁移的源集群的一个服务器节点上的计算机上获取它们中的步骤操作。

  2. 将源集群置于维护模式:

    ./configureUiPathAS.sh enable-maintenance-mode./configureUiPathAS.sh enable-maintenance-mode
    重要提示:

    停机时间现在开始。

  3. 使用您的首选方法将数据库复制到目标集群。 例如,您可以使用复制数据库向导

克隆源集群数据

  1. 通过运行以下命令,获取目标集群的target_kubeconfig文件以执行数据迁移:

    ./configureUiPathAS.sh kubeconfig get --migration./configureUiPathAS.sh kubeconfig get --migration
    注意:需要 target_kubeconfig 文件才能获取目标集群内对象存储的信息并执行目标版本所需的数据复制。
  2. 将生成的文件复制到源集群。在数据迁移期间,您需要使用此文件。

  3. 通过在源集群上运行数据迁移脚本,将数据从源集群复制到目标集群。

    cd /opt/UiPathAutomationSuite/<new_version>/installer/bin
    uipathctl cluster migration run cluster_config.json --target-kubeconfig <target_kubeconfig> --versions versions.jsoncd /opt/UiPathAutomationSuite/<new_version>/installer/bin
    uipathctl cluster migration run cluster_config.json --target-kubeconfig <target_kubeconfig> --versions versions.json
    备注:
    • 先前的迁移命令具有幂等性。如果命令由于网络连接问题而在两者之间失败,您可以重新运行它,并且系统将从中断的位置继续执行迁移过程。
    • (可选)您可以通过再次运行迁移命令来执行数据迁移的差异同步。
  4. 如果您在源集群中使用外部对象存储,请克隆对象存储桶。

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