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

在多节点 HA 就绪生产设置中验证先决条件

在安装 Automation Suite 之前,最好验证安装先决条件和基础架构是否准备就绪。 在执行安装之前,您可以使用专用脚本评估环境并生成摘要。

使用脚本验证安装先决条件

下载脚本

备注:

对于离线安装,您必须在可访问互联网的计算机上执行此步骤,且此计算机可访问已部署 Automation Suite 的离线计算机。将文件从联机计算机复制到第一台目标计算机。

必备程序脚本与安装程序一起打包在名为sf-installer.zip的存档中,支持工具捆绑为sf-infra.tar.gz ,仅供离线使用。 您需要这些文件来生成有关计划安装 Automation Suite 的所有计算机的报告。

安装类型要下载的文件
在线sf-installer.zipMandatory. For download instructions, see sf-installer.zip.
离线sf-installer.zipMandatory. For download instructions, see sf-installer.zip.

sf-infra.tar.gzMandatory. For download instructions, see sf-infra.tar.gz.

准备使用脚本

  1. 通过运行以下命令成为根用户:

    sudo su -
    sudo su -
    
  2. 运行以下命令,将文件复制到/opt/UiPathAutomationSuite/{version}文件夹:

    VERSION="" #add the version number you are trying to install. Ex: for 2022.4.0 Set VERSION="2022.4.0"
    mkdir -p /opt/UiPathAutomationSuite/${VERSION}
    # For below command replace the /path/to where actually the files are present.
    cp /path/to/sf-installer.zip /opt/UiPathAutomationSuite/${VERSION}
    # Additionally for offline, copy sf-infra.tar.gz as well to /opt/UiPathAutomationSuite/{VERSION} folder
    cp /path/to/sf-infra.tar.gz /opt/UiPathAutomationSuite/${VERSION}
    cd /opt/UiPathAutomationSuite/${VERSION}
    VERSION="" #add the version number you are trying to install. Ex: for 2022.4.0 Set VERSION="2022.4.0"
    mkdir -p /opt/UiPathAutomationSuite/${VERSION}
    # For below command replace the /path/to where actually the files are present.
    cp /path/to/sf-installer.zip /opt/UiPathAutomationSuite/${VERSION}
    # Additionally for offline, copy sf-infra.tar.gz as well to /opt/UiPathAutomationSuite/{VERSION} folder
    cp /path/to/sf-infra.tar.gz /opt/UiPathAutomationSuite/${VERSION}
    cd /opt/UiPathAutomationSuite/${VERSION}
    
  3. 通过运行以下命令解压缩包:

    unzip sf-installer.zip -d installer
    unzip sf-installer.zip -d installer
    
  4. 通过运行以下命令分配必要的权限并导航到脚本文件夹:

    chmod -R 755 installer
    cd installer
    chmod -R 755 installer
    cd installer
    

Script Parameters

要查看帮助部分和支持的标志,请运行以下命令:

./validateUiPathASReadiness.sh --help
./validateUiPathASReadiness.sh --help

输出:

***************************************************************************************
validateUiPathASReadiness.sh Runs pre-install validation checks
Arguments:
 -i|--input                                             Specify cluster config json file
 -m|--machines                                          Comma separated IP address / hostnames of all the machines
 -n|--node-type                                         Possible values [server|agent|task-mining|gpu]. Defaults to server
 --install-type                                         Possible values [online|offline]. Defaults to online
 --install-standalone-aicenter                          Run checks for standalone aicenter service only
 --prereq-bundle </uipath/sf-infra.tar.gz>   Specify the path to the prereq bundle, only for offline installation
 --prereq-tmp-folder </uipath>                          Specify parent directory for the temporary install folder, only for offline installation
 -h|--help                                              Display help
***************************************************************************************
***************************************************************************************
validateUiPathASReadiness.sh Runs pre-install validation checks
Arguments:
 -i|--input                                             Specify cluster config json file
 -m|--machines                                          Comma separated IP address / hostnames of all the machines
 -n|--node-type                                         Possible values [server|agent|task-mining|gpu]. Defaults to server
 --install-type                                         Possible values [online|offline]. Defaults to online
 --install-standalone-aicenter                          Run checks for standalone aicenter service only
 --prereq-bundle </uipath/sf-infra.tar.gz>   Specify the path to the prereq bundle, only for offline installation
 --prereq-tmp-folder </uipath>                          Specify parent directory for the temporary install folder, only for offline installation
 -h|--help                                              Display help
***************************************************************************************

下表描述了运行脚本时可以使用的参数:

参数描述
-i|--inputAccepts the cluster_config.json file as input. This file defines the parameters, settings, and preferences applied to the UiPath services deployed via Automation Suite. For details, see Advanced Installation Experience.

如果您不提供此文件,则脚本将触发交互式体验以收集这些输入。 然后,系统将代表您生成该文件。
-m|--machines接受所有计算机的以逗号分隔的 IP 地址/主机名。 这是检查所需端口上所有节点之间的连接性所必需的。

对于多节点 HA 就绪生产安装,该参数是必需的。 除此之外,如果您计划在单节点评估集群中添加 Task Mining 或 GPU 节点,则该参数也是必需的。
-n|--node-type接受当前节点的类型。 可能的值包括: serveragenttask-mininggpu

默认值为 server
--install-type接受安装方法: onlineoffline

默认值为 online
--install-standalone-aicenter这是一个布尔值标志。 如果您计划安装独立的 AI Center,请通过此选项。
--prereq-bundle接受sf-infra.tar.gz所在的绝对路径。
--prereq-tmp-folder接受将临时提取sf-infra.tar.gz捆绑包的绝对路径。 如果未提供此路径,则安装程序将选择/tmp文件夹。

验证多节点 HA 就绪生产设置

在第一台服务器计算机上

  1. 要验证第一台服务器计算机,请运行以下命令:

在线

./validateUiPathASReadiness.sh \
  --node-type server \
  --install-type online \
  --machines "10.0.1.8, 10.0.1.9" #replace with actual machine IPs of all the nodes in cluster
./validateUiPathASReadiness.sh \
  --node-type server \
  --install-type online \
  --machines "10.0.1.8, 10.0.1.9" #replace with actual machine IPs of all the nodes in cluster

离线

./validateUiPathASReadiness.sh \
  --node-type server \
  --install-type offline \
  --prereq-bundle ../sf-infra.tar.gz \
  --prereq-tmp-folder /opt/UiPathAutomationSuite/tmp \
  --machines "10.0.1.8, 10.0.1.9" #replace with actual machine IPs of all the nodes in cluster
./validateUiPathASReadiness.sh \
  --node-type server \
  --install-type offline \
  --prereq-bundle ../sf-infra.tar.gz \
  --prereq-tmp-folder /opt/UiPathAutomationSuite/tmp \
  --machines "10.0.1.8, 10.0.1.9" #replace with actual machine IPs of all the nodes in cluster

执行此脚本后,它将在/opt/UiPathAutomationSuite文件夹下生成一个cluster_config.json文件。 所有其他计算机上都需要此文件。

  1. 要在其他计算机上复制cluster_config.json文件,请运行以下命令:
scp /opt/UiPathAutomationSuite/cluster_config.json <username>@<node dns>:/opt/UiPathAutomationSuite
scp /opt/UiPathAutomationSuite/cluster_config.json <username>@<node dns>:/opt/UiPathAutomationSuite
备注:

如果由于权限错误而无法将文件复制到/opt/UiPathAutomationSuite文件夹,则可以将其临时复制到新计算机上的/var/tmp ,然后将其移动到/opt/UiPathAutomationSuite

或者,您也可以通过运行以下命令来提供对新计算机上/opt/UiPathAutomationSuite文件夹的完全访问权限 ( 777 ): chmod -R 777 /opt/UiPathAutomationSuite

在其他服务器计算机上

要验证其他服务器计算机,请运行以下命令:

在线

./validateUiPathASReadiness.sh \
  --input /opt/UiPathAutomationSuite/cluster_config.json \
  --node-type server \
  --install-type online \
  --machines "10.0.1.8, 10.0.1.9" #replace with actual machine IP of all the nodes in cluster
./validateUiPathASReadiness.sh \
  --input /opt/UiPathAutomationSuite/cluster_config.json \
  --node-type server \
  --install-type online \
  --machines "10.0.1.8, 10.0.1.9" #replace with actual machine IP of all the nodes in cluster

离线

./validateUiPathASReadiness.sh \
  --input /opt/UiPathAutomationSuite/cluster_config.json \
  --node-type server \
  --install-type offline \
  --prereq-bundle ../sf-infra.tar.gz \
  --prereq-tmp-folder /opt/UiPathAutomationSuite/tmp \
  --machines "10.0.1.8, 10.0.1.9" #replace with actual machine IP of all the nodes in cluster
./validateUiPathASReadiness.sh \
  --input /opt/UiPathAutomationSuite/cluster_config.json \
  --node-type server \
  --install-type offline \
  --prereq-bundle ../sf-infra.tar.gz \
  --prereq-tmp-folder /opt/UiPathAutomationSuite/tmp \
  --machines "10.0.1.8, 10.0.1.9" #replace with actual machine IP of all the nodes in cluster

在代理计算机上

要验证代理计算机,请运行以下命令:

在线

./validateUiPathASReadiness.sh \
  --input /opt/UiPathAutomationSuite/cluster_config.json \
  --node-type agent \
  --install-type online \
  --machines "10.0.1.8, 10.0.1.9" # replace with actual machine IP of all the nodes in cluster
./validateUiPathASReadiness.sh \
  --input /opt/UiPathAutomationSuite/cluster_config.json \
  --node-type agent \
  --install-type online \
  --machines "10.0.1.8, 10.0.1.9" # replace with actual machine IP of all the nodes in cluster

离线

./validateUiPathASReadiness.sh \
  --input /opt/UiPathAutomationSuite/cluster_config.json \
  --node-type agent \
  --install-type offline \ #replace with offline for airgap
  --prereq-bundle ../sf-infra.tar.gz \
  --prereq-tmp-folder /opt/UiPathAutomationSuite/tmp \
  --machines "10.0.1.8, 10.0.1.9" # replace with actual machine IP of all the nodes in cluster
./validateUiPathASReadiness.sh \
  --input /opt/UiPathAutomationSuite/cluster_config.json \
  --node-type agent \
  --install-type offline \ #replace with offline for airgap
  --prereq-bundle ../sf-infra.tar.gz \
  --prereq-tmp-folder /opt/UiPathAutomationSuite/tmp \
  --machines "10.0.1.8, 10.0.1.9" # replace with actual machine IP of all the nodes in cluster

在 Task Mining 计算机和 GPU 计算机上

要验证 Task Mining 和 GPU 计算机,请运行以下命令:

备注:

对于 Task Mining 和 GPU 节点,请在以下命令中分别使用--node-type task-mining--node-type gpu

在线

./validateUiPathASReadiness.sh \)\)
  --input /opt/UiPathAutomationSuite/cluster_config.json \)\)
  --node-type task-mining \)\) #replace with GPU for GPU node
  --install-type online \)\)
  --machines "10.0.1.8, 10.0.1.9" # replace with actual machine IP of all the nodes in cluster
./validateUiPathASReadiness.sh \)\)
  --input /opt/UiPathAutomationSuite/cluster_config.json \)\)
  --node-type task-mining \)\) #replace with GPU for GPU node
  --install-type online \)\)
  --machines "10.0.1.8, 10.0.1.9" # replace with actual machine IP of all the nodes in cluster

离线

./validateUiPathASReadiness.sh \)\)
  --input /opt/UiPathAutomationSuite/cluster_config.json \)\)
  --node-type task-mining \)\) #replace with GPU for GPU node
  --install-type offline \)\)
  --prereq-bundle ../sf-infra.tar.gz \)\)
  --prereq-tmp-folder /opt/UiPathAutomationSuite/tmp \)\)
  --machines "10.0.1.8, 10.0.1.9" # replace with actual machine IP of all the nodes in cluster
./validateUiPathASReadiness.sh \)\)
  --input /opt/UiPathAutomationSuite/cluster_config.json \)\)
  --node-type task-mining \)\) #replace with GPU for GPU node
  --install-type offline \)\)
  --prereq-bundle ../sf-infra.tar.gz \)\)
  --prereq-tmp-folder /opt/UiPathAutomationSuite/tmp \)\)
  --machines "10.0.1.8, 10.0.1.9" # replace with actual machine IP of all the nodes in cluster

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新