Forum Discussion
Tal_BenHaim_112
Nimbostratus
Oct 03, 2006LB::reselect - LB_SELECTED event occures twice
Im trying to write a rule that will select the pool member according to a parameter in the query string .
It seems that the LB_SELECTED event occurs twice.
in the first occurence the pool na...
R__Scott_Wood_8
Oct 03, 2006Historic F5 Account
Hi,
Here's some info you might find useful.
1) ASM virtuals work a bit differently than non-ASM virtuals, in that, as you've observed, the LB_SELECTED rule event does fire twice. The first LB_SELECTED indicates which server the request will eventually be serviced by - the second LB_SELECTED is due to the request being routed to ASM for processing.
ASM virtuals use httpclasses, so the appropriate place to select an alternate destination for a given request is in the HTTP_CLASS_SELECTED rule event, which fires between HTTP_REQUEST and LB_SELECTED.
Your iRule should work if you move the code in LB_SELECTED to HTTP_CLASS_SELECTED, provided you intend for the request to go through ASM.
2) Currently, BIG-IP log files are rotated daily and one week's worth of log files are kept on the system.
-S
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
