I have 2 origin pools and one for normal traffic (Origin-Pool-1), the second for staging purposes (Origin-Pool-2).
I need to send my internal traffic (internal ip) to the Origin-Pool-2 and the normal traffic to Origin-Pool-1. I’ve created a custom rule (Staging Routing) to send traffic coming from (ip.src eq 5.253.233.22) to Origin-Pool-2.
I’ve created a rule (ip.src eq 5.253.233.22) to override and route traffic to Origin-Pool-2.
But this Load Balancing Custom Rules works unpredictably. This either sends all traffic, including normal, to the Origin-Pool-2 or Origin-Pool-1 depending on the shed% of the Default Traffic and Session Affinity traffic defined on the Origin-Pool-2.
-
If I assign shed % 100 on Default Traffic and Session Affinity it send all traffic to Origin-Pool-1 regardless of the rule.
-
If I assign shed % 0 on Default Traffic and Session Affinity it send all traffic to Origin-Pool-2 regardless of the rule.
-
If I assign shed % 50 on Default Traffic and Session Affinity some normal traffic routes to Origin-Pool-2 regardless of the source ip address.
What am I missing here? Any help would be appreciated.