Robert_47833
Jun 26, 2012Altostratus
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