- 概述
- 要求
- 安装
- 安装后
- 集群管理
- 监控和警示
- 迁移和升级
- 特定于产品的配置
- 最佳实践和维护
- 故障排除
- 如何在安装过程中对服务进行故障排除
- 如何卸载集群
- 如何清理离线工件以改善磁盘空间
- 如何清除 Redis 数据
- 如何启用 Istio 日志记录
- 如何手动清理日志
- 如何清理存储在 sf-logs 存储桶中的旧日志
- 如何禁用 AI Center 的流日志
- 如何对失败的 Automation Suite 安装进行调试
- 如何在升级后从旧安装程序中删除映像
- 如何自动清理 Longhorn 快照
- 如何禁用 TX 校验和卸载
- 如何手动将 ArgoCD 日志级别设置为 Info
- 如何为外部注册表生成已编码的 pull_secret_value
- 如何解决 TLS 1.2 中的弱密码问题
- 如何使用证书
- 如何使用集群内对象存储 (Ceph) 收集 DU 使用情况数据
- 如何在离线环境中安装 RKE2 SELinux
- 如何清理 NFS 服务器上的旧差异备份
- 无法获取沙盒映像
- Pod 未显示在 ArgoCD 用户界面中
- Redis 探测器失败
- RKE2 服务器无法启动
- 在 UiPath 命名空间中找不到密码
- ArgoCD 在首次安装后进入“进行中”状态
- 访问 ArgoCD 只读帐户时出现问题
- MongoDB Pod 处于 CrashLoopBackOff 状态或在删除后处于“等待 PVC 配置”状态
- 集群还原或回滚后服务运行状况不佳
- Pod 在 Init:0/X 中卡住
- Prometheus 处于 CrashLoopBackoff 状态,并出现内存不足 (OOM) 错误
- 监控仪表板中缺少 Ceph-rook 指标
- Pod 无法在代理环境中与 FQDN 通信
- 无法配置升级后的电子邮件警示
- 无正常的上游问题
- 使用 Automation Suite 诊断工具
- 使用 Automation Suite 支持捆绑包
- 探索日志
验证多节点 HA 就绪生产设置中的先决条件
概述
在安装 Automation Suite 之前,最好验证安装先决条件和基础架构是否准备就绪。 在执行安装之前,您可以使用validateUiPathASReadiness.sh脚本评估您的环境并生成摘要。
| 验证 | 描述 |
|---|---|
|
硬件要求 |
验证集群中的每台计算机是否满足硬件要求。检查时考虑以下方面:
|
|
磁盘分区和配置 |
验证您是否正确对磁盘进行了分区和配置。检查时考虑以下方面:
|
|
SQL Server 连接 |
验证与已配置的 SQL Server 和数据库的连接。 检查时考虑以下方面:
|
|
服务器证书 |
检查您提供的服务器证书是否有效。 检查时考虑以下方面:
|
|
令牌签名证书 |
检查您提供的令牌签名证书是否有效。 检查时考虑以下方面:
|
|
代理 |
验证您是否正确配置了代理。 检查时考虑以下方面:
|
|
连接性 |
验证所有计算机是否可以相互连接,所有必需的 URL 是否都在防火墙允许列表中,等等。 检查时考虑以下方面:
|
|
系统服务 |
验证系统服务是否已正确配置。 检查时考虑以下方面:
|
|
软件要求 |
验证是否已安装所有必需的软件。 如果未安装某些软件, |
|
升级 |
验证跨 Automation Suite 版本的升级路径是否正确。 |
使用脚本验证安装先决条件
下载脚本
对于离线安装,您必须在可访问互联网的计算机上执行此步骤,且此计算机可访问已部署 Automation Suite 的离线计算机。将文件从联机计算机复制到第一台目标计算机。
必备程序脚本与安装程序一起打包在名为as-installer.zip的存档中,支持工具捆绑为as-infra.tar.gz ,仅供离线使用。 您需要这些文件来生成有关计划安装 Automation Suite 的所有计算机的报告。
| 安装类型 | 要下载的文件 |
|---|---|
| 在线 | as-installer.zip – Mandatory. For download instructions, see as-installer.zip. |
| 离线 | as-installer.zip – Mandatory. For download instructions, see as-installer.zip.as-infra.tar.gz – Mandatory. For download instructions, see as-infra.tar.gz. |
准备使用脚本
-
通过运行以下命令成为根用户:
sudo su -sudo su - -
运行以下命令,将文件复制到
/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/as-installer.zip /opt/UiPathAutomationSuite/${VERSION} # Additionally for offline, copy as-infra.tar.gz as well to /opt/UiPathAutomationSuite/{VERSION} folder cp /path/to/as-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/as-installer.zip /opt/UiPathAutomationSuite/${VERSION} # Additionally for offline, copy as-infra.tar.gz as well to /opt/UiPathAutomationSuite/{VERSION} folder cp /path/to/as-infra.tar.gz /opt/UiPathAutomationSuite/${VERSION} cd /opt/UiPathAutomationSuite/${VERSION} -
通过运行以下命令解压缩包:
unzip as-installer.zip -d installerunzip as-installer.zip -d installer -
通过运行以下命令分配必要的权限并导航到脚本文件夹:
chmod -R 755 installer cd installerchmod -R 755 installer cd installer
Script parameters
要查看帮助部分和支持的标志,请运行以下命令:
./validateUiPathASReadiness.sh --help
./validateUiPathASReadiness.sh --help
输出:
***************************************************************************************
validateUiPathASReadiness.sh Runs pre-install validation checks
Usage:
validateUiPathASReadiness.sh [command]
validateUiPathASReadiness.sh [flags]
Available Commands:
validate-packages Validate that required packages are installed
install-packages Install required packages. If --install-type offline, this will also install offline required packages
Arguments:
-i|--input Specify cluster config json file. Defaults to /opt/UiPathAutomationSuite/cluster_config.json
-d|--debug Debug mode to get additional details helpful for debugging
-m|--machines Comma separated IP address / hostnames of all the machines
-n|--node-type Possible values [server|agent|taskmining|asrobots|gpu]. Defaults to server
--install-type Possible values [online|offline]. Defaults to online
--prereq-bundle </uipath/offline_bundle.tar.gz> Specify the path to the prereq bundle
--prereq-tmp-folder </uipath> Specify parent directory for the temporary install folder
--kubeconfig Specify path to the kubeconfig file
-h|--help Display help
***************************************************************************************
***************************************************************************************
validateUiPathASReadiness.sh Runs pre-install validation checks
Usage:
validateUiPathASReadiness.sh [command]
validateUiPathASReadiness.sh [flags]
Available Commands:
validate-packages Validate that required packages are installed
install-packages Install required packages. If --install-type offline, this will also install offline required packages
Arguments:
-i|--input Specify cluster config json file. Defaults to /opt/UiPathAutomationSuite/cluster_config.json
-d|--debug Debug mode to get additional details helpful for debugging
-m|--machines Comma separated IP address / hostnames of all the machines
-n|--node-type Possible values [server|agent|taskmining|asrobots|gpu]. Defaults to server
--install-type Possible values [online|offline]. Defaults to online
--prereq-bundle </uipath/offline_bundle.tar.gz> Specify the path to the prereq bundle
--prereq-tmp-folder </uipath> Specify parent directory for the temporary install folder
--kubeconfig Specify path to the kubeconfig file
-h|--help Display help
***************************************************************************************
下表描述了运行脚本时可以使用的参数:
| 参数 | 描述 |
|---|---|
-i|--input | Accepts 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.如果您不提供此文件,则脚本将触发交互式体验以收集这些输入。 然后,系统将代表您生成该文件。 |
-d|--debug | 调试模式,以获取有助于调试的其他详细信息。 |
-m|--machines | 接受所有计算机的以逗号分隔的 IP 地址/主机名。 这是检查所需端口上所有节点之间的连接性所必需的。 对于多节点 HA 就绪生产安装,必须使用该参数。除此之外,如果您计划在单节点评估集群中添加 Task Mining、GPU 或 Automation Suite Robot 节点,则也必须使用该参数。 |
-n|--node-type | 接受当前节点的类型。 可能的值包括: server 、 agent 、 task-mining 、 gpu和asrobots 。默认值为 server。 |
--install-type | 接受安装方法: online或offline 。默认值为 online。 |
--prereq-bundle | 接受as-infra.tar.gz所在的绝对路径。 |
--prereq-tmp-folder | 接受将临时提取as-infra.tar.gz捆绑包的绝对路径。 如果未提供此路径,则安装程序将选择/tmp文件夹。 |
--kubeconfig | 指定 kubeconfig 文件的路径。 |
validate-packages | 验证所需的 RPM 包。 |
install-packages | 安装在线安装所需的 RPM 包。 |
install-packages --install-type offline | 安装离线安装所需的 RPM 包。 |
验证多节点 HA 就绪生产设置
在第一台服务器计算机上
- 要验证第一台服务器计算机,请运行以下命令:
在线
./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 ../as-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 ../as-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文件。 所有其他计算机上都需要此文件。
- 要在其他计算机上复制
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 ../as-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 ../as-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 ../as-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 ../as-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 或 Automation Suite Robot 计算机,请运行以下命令:
确保使用合适的参数来标识您的专用代理节点:
- 对于 Task Mining 计算机,请使用
--node-type task-mining - 对于 GPU 计算机,请使用
--node-type gpu - 对于 Automation Suite 机器人计算机,请使用
--node-type asrobots
在线
./validateUiPathASReadiness.sh \
--input /opt/UiPathAutomationSuite/cluster_config.json \
--node-type task-mining \ #replace with gpu for GPU node or asrobots for Automation Suite Robots 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 or asrobots for Automation Suite Robots 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 or asrobots for Automation Suite Robots node
--install-type offline \
--prereq-bundle ../as-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 or asrobots for Automation Suite Robots node
--install-type offline \
--prereq-bundle ../as-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