Automation Suite
2023.10
False
横幅背景图像
Linux 版 Automation Suite 安装指南
上次更新日期 2024年4月19日

High Availability Add-on 配置

Automation Suite supports High Availability Add-on (HAA) installed either in the same cluster or on external machines.

备注:

You must configure HAA to enable the actual HA setup for the multi-node setup. To do that, you can either provide the HAA license to the installer or install HAA on the external machines and give the HAA configurations to the installer.

集群内 Redis High Availability Add-on 配置

在多节点 HA 就绪生产设置中,我们会默认启用高可用性 (HA)。但是,集群服务使用的基于 Redis 的内存缓存在单个节点上运行,并且表示单点故障。为了减轻缓存节点故障或重新启动的影响,您可以购买 High Availability Add-on (HAA),它可以实现缓存的冗余多节点 HA 就绪生产部署。

备注:

所有安装都包括具有单节点许可证的 HAA 软件。此许可证是免费的,无需购买。

如果您希望跨多个节点启用 HAA,则需要购买 HAA 许可证。这将在多节点 HA 就绪生产设置中实现集群的完全高可用性。

HAA 基于 Redis 技术。

为此,请执行以下步骤:

  1. Purchase an HAA license. Contact UiPath® for details.
  2. 更新 cluster_config.json 文件中的以下字段:
    • fabric.redis.license - 输入已转换为单个 Base64 字符串的 HAA 许可证。在 Bash 中,您可以使用 echo 'license_text_here' | base64 -w0 执行此操作。
    • fabric.redis.ha - 使用 true 启用 HAA,并确保配置 fabric.redis.license 参数。这将启用 HAA 数据库复制,并将 HAA Pod 的数量增加到 3。默认情况下,fabric.redis.ha 设置为 false
      注意:如果启用了 redis.ha,则需要将 redis.license 设置为支持两个以上分片的许可证。
      "fabric": {
          "redis": { 
              "ha": "true",
              "license": Base64String
          }
      }"fabric": {
          "redis": { 
              "ha": "true",
              "license": Base64String
          }
      }
  3. 重新运行结构安装程序:
    ./install-uipath.sh -i cluster_config.json -f -o output.json --accept-license-agreement./install-uipath.sh -i cluster_config.json -f -o output.json --accept-license-agreement

更新 Redis 许可证

要更新 Redis 许可证,请执行以下步骤:

  1. 设置 kubectl 和 ArgoCD 访问权限:
    1. 在主节点上启用 kubectl 访问权限。有关说明,请参阅启用 kubectl
    2. 启用对 ArgoCD 的访问权限。有关说明,请参阅访问 ArgoCD
  2. 检查当前许可证状态:

    要检查当前许可证的状态,请运行以下 Shell 命令:

    kubectl get rec -n redis-system redis-cluster -o jsonpath='{.status.licenseStatus}' | jqkubectl get rec -n redis-system redis-cluster -o jsonpath='{.status.licenseStatus}' | jq
    • 在安装程序中包含的许可证到期日期之后部署的集群将显示 4 个分片的试用许可证,该许可证将在 30 天后过期,如以下示例所示:



    • 已在运行的集群会在许可证过期时显示以下状态:


  3. 更新现有许可证:
    1. 要更新现有许可证,请运行以下 Shell 命令:
      kubectl patch application fabric-installer -n argocd \
      --type=json -p '[{"op":"add","path":"/spec/source/helm/parameters/-","value":{"name": "global.redis.license", "value": "<LICENSE_KEY_IN_BASE64>"}}]'kubectl patch application fabric-installer -n argocd \
      --type=json -p '[{"op":"add","path":"/spec/source/helm/parameters/-","value":{"name": "global.redis.license", "value": "<LICENSE_KEY_IN_BASE64>"}}]'


    2. 要查看是否已应用更改,请访问 ArgoCD。有关说明,请参阅访问 ArgoCD
    3. 如果结构安装程序应用程序显示为不同步,并且同步过程未自动触发,请自行单击“同步”按钮。如果您使用的是较旧的 Automation Suite 版本,则可能会发生这种情况。






      注意:ArgoCD 用户界面显示已同步的应用程序与 Redis 运算符成功应用新许可证之间存在一小段延迟。
    4. 要在 Redis 运算符尝试应用许可证时查看其日志,请运行以下命令:
      kubectl logs -n redis-system --since=300s -l name=redis-enterprise-operator -c redis-enterprise-operator --tail=-1 | grep licensekubectl logs -n redis-system --since=300s -l name=redis-enterprise-operator -c redis-enterprise-operator --tail=-1 | grep license


    5. 如果您尝试应用过期的许可证,或者运行附带过期许可证的安装程序,您将获得以下输出:


    6. 要在运行旧版安装程序之前更新 Redis 许可证,请更新 <installer_folder>/defaults.json 中的 fabric.redis.license 密钥:


  4. 检查是否应用了新许可证:

    要检查是否应用了新许可证,请运行以下 Shell 命令:

    kubectl get rec -n redis-system redis-cluster -o jsonpath='{.status.licenseStatus}' | jqkubectl get rec -n redis-system redis-cluster -o jsonpath='{.status.licenseStatus}' | jq

    在下图中,您可以看到 Redis 集群从 30 天试用许可证切换到单分片 10 年许可证。



外部 High Availability Add-on 配置

选择 Automation Suite 的主动/主动配置时,必须使用外部集群托管的 High Availability Add-on。在所有其他情况下,它只是可选的。

要配置 High Availability Add-on,您必须更新 cluster_config.json 文件中的以下参数:

参数

描述

fabric.redis.hostname

提供 High Availability Add-on (HAA) 服务器的 FQDN。

fabric.redis.password

提供用于连接到 HAA 服务器的密码。

fabric.redis.port

提供 HAA 服务器的端口。
fabric.redis.tls

启用 TLS 协议。默认情况下,启用 TLS。

备注:
如果在启用 TLS 时需要证书,请确保通过 additional_ca_certs 标志提供证书。有关详细信息,请参阅证书配置
"fabric": {
  "redis": {
    "hostname": "redis_fqdn",
    "password": "credential_to_connect_redis",
    "port": 6380,
    "tls": true,
  }
}"fabric": {
  "redis": {
    "hostname": "redis_fqdn",
    "password": "credential_to_connect_redis",
    "port": 6380,
    "tls": true,
  }
} 
  • 集群内 Redis High Availability Add-on 配置
  • 更新 Redis 许可证
  • 外部 High Availability Add-on 配置

此页面是否有帮助?

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