Red Hat Bugzilla – Bug 1479392
Traffic splitting is based on # of pods and not on % per service
Last modified: 2017-08-08 10:43:30 EDT
Description of problem:
If I have two services and a route splitting traffic 50/50 between them, the actual split is based on how many pods there are for each service. So if service A has 4 pods and service B has 1 pods, service A will get 4 times the traffic that service B does.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create two services (with different home pages so you can tell the difference (Ex: 1 ruby and 1 python)). One with 4 pods and one with 1 pod.
2. Create a route that splits traffic 50/50 between them.
3. Hit the route 10 times (from new incognito windows for each hit) and you will see that you got 8 results from 1 service and 2 from the other.
8 hits from 1 service and 2 from the other
5 hits from each service
This may be expected behavior from the routing tier, although I would argue it's not the desired behavior, but at a minimum this is not the expected behavior given the text in the UI/docs.
Note I did this with oc cluster up. openshift.com seems to have a little more random results.
This is fixed in 1470350
*** This bug has been marked as a duplicate of bug 1470350 ***
Also openshift-docs PR 4847