Automation Suite
2023.10
False
Image de fond de la bannière
Guide d'installation d'Automation Suite sur Linux
Dernière mise à jour 19 avr. 2024

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

Cette page vous a-t-elle été utile ?

Obtenez l'aide dont vous avez besoin
Formation RPA - Cours d'automatisation
Forum de la communauté UiPath
Logo Uipath blanc
Confiance et sécurité
© 2005-2024 UiPath. All rights reserved.