Forum Discussion
bgray1234
Nimbostratus
Sep 16, 2013switching pools in irule without using oneconnect profile
is there a way to have an irule change pools with a switch without using the oneconnect profile.
example
switch
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/s/" {
pool pool1
}
...
Kevin_Davies_40
Nacreous
Sep 16, 2013Inside your HTTP_REQUEST event use the command LB::detach. This will remove the stickyness and allow your iRule to select a destination per HTTP request. The reason it is sticky is the pool selection is normally only performed once at the start of the TCP connection. Subsequent pool commands will have no effect unless you tell the F5 to detach the connection from the server side using the command given. When you are using oneconnect the server side is always detached.
See the following solution ID's which describe this behaviour
sol9800
sol7964
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