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

Redirecting traffic for the unsupported services to the primary cluster

You can install products that are not supported in Disaster Recovery with Active/Passive and Active/Active. However, you should take the following aspects into consideration:

  • In Active/Passive deployments, you cannot use these products when the second cluster is in use or active.

  • In Active/Active deployments, the traffic for the unsupported services in the secondary cluster must always be redirected to the primary cluster. To do that, run the following script on the secondary cluster only:

    services=("aifabric" "actions" "bupproxyservice" "apps" "du" "testmanager" "roboticsops" "processes" "dataservice")
    existingJson=$(kubectl get wasmplugin uipath-routing-policy -n istio-system -o json)
    for service in "${services[@]}"
    do
      exists=$(echo "$existingJson" | jq -r ".spec.pluginConfig.forward_services[] | select(.name == \"$service\")")
      if [ -n "$exists" ]; then 
         echo "Service '${service}' already exists. Skipping..."
         continue
      fi
      kubectl patch wasmplugin uipath-routing-policy -n istio-system --type='json' -p='[{"op": "add", "path": "/spec/pluginConfig/forward_services/-", "value": {"name": "'$service'", "paths": [""]}}]'
      echo "Service '${service}' forwarding rule added."
    doneRemove servicesservices=("aifabric" "actions" "bupproxyservice" "apps" "du" "testmanager" "roboticsops" "processes" "dataservice")
    existingJson=$(kubectl get wasmplugin uipath-routing-policy -n istio-system -o json)
    for service in "${services[@]}"
    do
      exists=$(echo "$existingJson" | jq -r ".spec.pluginConfig.forward_services[] | select(.name == \"$service\")")
      if [ -n "$exists" ]; then 
         echo "Service '${service}' already exists. Skipping..."
         continue
      fi
      kubectl patch wasmplugin uipath-routing-policy -n istio-system --type='json' -p='[{"op": "add", "path": "/spec/pluginConfig/forward_services/-", "value": {"name": "'$service'", "paths": [""]}}]'
      echo "Service '${service}' forwarding rule added."
    doneRemove services

此页面是否有帮助?

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