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

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

为 Automation Suite Robot 添加专用代理节点,以将机器人工作负载与其他集群服务分开。

要求

在开始安装 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脚本配置单独的磁盘,该脚本可以配置磁盘和路径:

./bin/uipathctl rke2 disk --robot-package-disk-name [DISKNAME] --robot-package-path /uipath_asrobots_package_cache
./bin/uipathctl rke2 disk --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参数的值与配置的值匹配。

步骤 1.3:为 Serverless Robot 配置节点

为 Serverless Robot 配置节点时,设置取决于将节点添加到集群的方式:

选项 A :添加专用 ASR 节点

如果将新节点作为专用 ASR 节点添加到集群,则系统会自动应用所需的标签和污点。运行以下命令:

./bin/uipathctl rke2 install -i ./cluster_config.json -o ./output.json -k -j asrobots --accept-license-agreement
./bin/uipathctl rke2 install -i ./cluster_config.json -o ./output.json -k -j asrobots --accept-license-agreement

该命令会自动添加以下内容:

  • 污点: serverless.robot=present:NoSchedule
  • 标签: serverless.robot=trueserverless.daemon=true

选项 B :使用现有代理节点

如果要重新调整已配置的代理节点(默认情况下未配置为 ASR),则必须手动添加标签、污点并配置包缓存磁盘。运行以下命令以手动配置节点:

  1. 为 Serverless Robot 添加污点:

    kubectl taint nodes [NODE_NAME] serverless.robot=present:NoSchedule
    kubectl taint nodes [NODE_NAME] serverless.robot=present:NoSchedule
    
  2. 为 Serverless Robot 添加标签:

    kubectl label nodes [NODE_NAME] serverless.robot=true serverless.daemon=true
    kubectl label nodes [NODE_NAME] serverless.robot=true serverless.daemon=true
    

步骤 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 
    
    ./bin/uipathctl rke2 install -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 
    
    ./bin/uipathctl rke2 install -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 论坛

保持更新