Hello,
LCR module logic is :
When the function load_gws()
is called, matching gateways (that are not currently designated as
defunct) are ordered for forwarding purposes as follows:
-
according to longest Request-URI user part match
-
according to tuple's priority
-
according to tuple's randomized weight
or, if priority_ordering parameter is set to value 1, as
follows:
-
according to tuple's priority
-
according to tuple's randomized weight
and Smaller priority value means higher
priority (highest priority value being 0 and lowest being 255). so
I have 3 lcr_rule_target use the same lcr_rule entry but 3
different Gateways and priority. So the order of rules would be
longest Request-URI (same) and the priority but the result is:
added matched_gws[0]=[3, 5, 200, 2193562]
added matched_gws[1]=[1, 5, 2, 6888519]
added matched_gws[2]=[2, 5, 50, 2159388]
same prefix but first rule target with
priority 200 and then 2 and then 50. I think the result would be
priority 2,50 and 100.
¿Or not?
---
I'm SoCIaL, MayBe