Chris_14171
Sep 13, 2011Nimbostratus
REQUEST event in iRule is not always running with LB_SELECTED
I am debugging an issue with the correct Pool not always being selected and after putting in debug I am finding that the iRule to select the pool does not always get run. I have the following statement in a iRule that is at the very top of the Virtual server iRule list
when LB_SELECTED {
log local0. "[IP::client_addr]:[LB::server addr]:LB_SELECTED:[HTTP::uri]"
}
And in the same iRule I have the following which does not always run, I see many requests where the LB_SELECTED event is in the log but for the same client, same request, the REQUEST event is not running. Any ideas?
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[LB::server addr]:REQUEST:[HTTP::uri]"
}
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[LB::server addr]:REQUEST:[HTTP::uri]"
set debuguri [HTTP::uri]
if {$debuguri contains "bv/1800"} {
} else {
log local0. "[IP::client_addr]:[LB::server addr]:[HTTP::uri]"
}
}