Rodolphe_AUBINE
Sep 21, 2010Nimbostratus
PB Dispatch HTTP request to another POOL on URI analysis
Hi,
I have one Virtual Serveur VS1 wich use default POOL1 for simple http resquest GET / POST.
I need to extract some request which contains "../pattern/..." and send to another POOL2 (which is not used bye another VS)
The simple IRule which is actived on VS1, is :
when HTTP_REQUEST {
if { [HTTP::uri] contains "mypattern" } {
log "[HTTP::uri] forwarded to pool POOL-2"
pool POOL-2
}
}
The Irule is OK with some uniq espaced resquets the good pool is choiced "default POOL1 or specific POOL2 if the URI contains "mypattern")
But, when I send massive GET or POST to this VS1, mixing with or without pattern, from an unique IP adress and an unique software client (browser, shell sender,...), I noticed that if the forward to POOL2 is done, the next "near" requests are also forwarder to POOL2, even if their URI doesn't match "mypattern".
Question : Is there a "session" or "sticky" mechanism which forward some request to POOL2, without logging and trigger bye the Irule... ? if yes, what is the common criteria between requests ? ip ? elapsed time ?....
Thanks in advance,
Rodolphe AUBINEAU.