Forum Discussion
one difficult question in irule with repect to ratio hits or "virtual pools"?
hello,dear irule
there is a irule ,with many pools and uri match on it,
such as
if { [HTTP::uri] starts_with "/test1"} {
pool CJJ-SLX1
return
}
if {[HTTP::uri] starts_with "/test2"}{
pool CJJ-SLX2
return
}
if {[URI::query [HTTP::uri]] starts_with "test3"} {
pool CJJ-SLX3
return
}
the requirement is:
we plan to create create another pools ,same blades as old pools:
CJJ-SLX1-test
CJJ-SLX2-test
CJJ-SLX3-test
rule:
------------------------------------
if it is a new request(without cookie) and match "/test1",it should go to CJJ-SLX1 and CJJ-SLX1-test per ratio(10% or something else)
if it is an old request(with cookie) and match "/test1",it should go to CJJ-SLX1-test
-------------------------------------------
not all pool should follow this rule,it is better there is some switch or config we can control which pools should follow this rule
How to change irule or anything else in bigip to meet this requirement?
thanks in advance
not an easy question
- hoolio
Cirrostratus
Hi Robbie, - Robert_47833
Altostratus
hi,Aaron - nitass
Employee
1:I also want to know whether I can store this ratio in a datagroup,then other team can update this ratio in GUI - Robert_47833
Altostratus
rand () =0 - nitass
Employee
The result is always strictly greater than 0.0 and strictly less than 1.0.rand - Robert_47833
Altostratus
it means it is impossible to reach 0 or 1.0,right? - nitass
Employee
it means it is impossible to reach 0 or 1.0,right?i think so.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com