UiPath Documentation
automation-suite
2023.10
false
Linux 版 Automation Suite 安装指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

为 Automation Suite Robot 添加专用代理节点

为 Automation Suite Robot 添加专用代理节点,以满足硬件要求并管理 Automation Suite 中缓存的包。

要求​

在开始安装 Automation Suite 机器人之前,请确保您满足硬件要求。

  • 在单节点评估安装中,Automation Suite Robot 在主服务器节点上运行。缓存的包存储在主节点的文件系统中,位于交互式安装程序自动配置的文件夹中。在单节点评估安装中,为 Automation Suite Robot 添加专用代理节点是可选的。
    备注:

    在单节点评估安装中,并发无服务器作业的数量限制为 5 个。

  • 在多节点 HA 就绪生产环境中,必须为 Automation Suite 机器人添加专用节点。有关专用节点必须满足的要求的详细信息,请参阅硬件和软件要求。
    备注:

    在多节点 HA 就绪生产安装中,并发 Serverless 作业的最大数量由节点的资源(CPU/内存)确定。

  • 包缓存至少需要 10GB。

将 Automation Suite 代理节点添加到集群​

以下部分说明了如何为 Automation Suite 机器人添加专用代理节点。

步骤 1:配置计算机​

步骤 1.1:对磁盘进行分区​

为确保磁盘已正确分区,请参阅配置磁盘中的说明。请确保按照代理节点的步骤操作。

步骤 1.2:配置磁盘以进行包缓存​
选项 A​

如果您在安装期间启用了包缓存,则必须在主机的文件系统上的/uipath_asrobots_package_cache位置或通过cluster_config.json/packagecachefolder配置的自定义路径配置一个文件夹。 该文件夹必须至少有 10GB 的可用空间,否则安装将失败。

选项 B​

或者,您可以为configureUiPathDisks脚本配置单独的磁盘,该脚本可以配置磁盘和路径:

./configureUiPathDisks.sh --robot-package-disk-name [DISKNAME] --robot-package-path /uipath_asrobots_package_cache
./configureUiPathDisks.sh --robot-package-disk-name [DISKNAME] --robot-package-path /uipath_asrobots_package_cache
备注:

--robot-package-path参数是可选的。如果未设置,则参数默认为/uipath_asrobots_package_cache 。如果修改cluster_config.json/packagecachefolder的默认值,请确保传递给--robot-package-path参数的值与配置的值匹配。

步骤 2:将交互式安装程序复制到目标计算机​

要将交互式安装程序复制到目标计算机,请执行以下步骤:

  1. 通过 SSH 连接到正确的计算机:
    • 如果您已将 Automation Suite 机器人添加到单节点评估安装,请转到主机。
    • 如果您已将 Automation Suite 机器人添加到多节点 HA 就绪生产安装,请转到任何服务器节点。
  2. 将UiPathAutomationSuite文件夹的内容复制到 Automation Suite 机器人节点。 确保使用特定于 Automation Suite 机器人节点的用户名和 DNS。
    sudo su -
    scp -r /opt/UiPathAutomationSuite <username>@<node dns>:/opt/
    scp -r ~/* <username>@<node dns>:/opt/UiPathAutomationSuite/
    sudo su -
    scp -r /opt/UiPathAutomationSuite <username>@<node dns>:/opt/
    scp -r ~/* <username>@<node dns>:/opt/UiPathAutomationSuite/
    

步骤 3:运行交互式安装程序以配置专用节点​

要配置专用节点,请执行以下步骤:

  1. 通过 SSH 连接到 Automation Suite 机器人节点。
  2. 运行 Automation Suite 交互式安装程序。
    sudo su -
    cd /opt/UiPathAutomationSuite
    yum install unzip jq -y
    CONFIG_PATH=/opt/UiPathAutomationSuite/cluster_config.json 
    
    ./install-uipath.sh -i ./cluster_config.json -o ./output.json -k -j asrobots --accept-license-agreement
    sudo su -
    cd /opt/UiPathAutomationSuite
    yum install unzip jq -y
    CONFIG_PATH=/opt/UiPathAutomationSuite/cluster_config.json 
    
    ./install-uipath.sh -i ./cluster_config.json -o ./output.json -k -j asrobots --accept-license-agreement
    

步骤 4:启用 kubectl ​

要在 Automation Suite 机器人计算机上设置 kubectl 上下文,请运行以下命令:

sudo su -
export KUBECONFIG=/var/lib/rancher/rke2/agent/kubelet.kubeconfig
export PATH=$PATH:/var/lib/rancher/rke2/bin
kubectl get nodes
sudo su -
export KUBECONFIG=/var/lib/rancher/rke2/agent/kubelet.kubeconfig
export PATH=$PATH:/var/lib/rancher/rke2/bin
kubectl get nodes

您应该会看到节点及其相应的名称。 在下一步中,您需要 Automation Suite 机器人节点的名称。

步骤 5:验证 Automation Suite Robot 配置​

检查是否已配置 Automation Suite 机器人节点。 确保将<node name>替换为 Automation Suite 机器人节点名称。

kubectl describe node <node name> | grep -i "taints"
kubectl describe node <node name> | grep -i "taints"

该命令应返回以下输出:

$ kubectl describe node asrobots0 | grep -i "taints"
Taints:             serverless.robot=present:NoSchedule
$ kubectl describe node asrobots0 | grep -i "taints"
Taints:             serverless.robot=present:NoSchedule

至此,您已成功完成 Automation Suite 机器人的安装。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新