Forum Discussion
Ronan_Burke_110
Nimbostratus
Oct 07, 2005A/B Site Testing
Hi,
I have a iRule where depending on a value stored on the Clients cookie, the user will be directed to one of two Pools. There is no issue if the Cookie exists, but how would I send the user to...
Ronan_Burke_110
Nimbostratus
Oct 10, 2005Hi Colin,
thanks for the reply.
I already have the cookie part setup and working. The problem I now have is that if the cookie does not exist all connections will be sent to the ChannelB Pool.
Is there a way I can load-balance between both Pools - ie: half the traffic going to each of the Pools if there is no cookie found.
if (exists http_cookie("cookietest") and http_cookie("cookietest") contains "ChannelA") {
log "ChannelA used"
use pool ChannelA
}
else {
if (exists http_cookie("cookietest") and http_cookie("cookietest") contains "ChannelB") {
log "ChannelB used"
use pool ChannelB
}
else {
log "Cookie NotFound"
}
}
Regards
Ronan
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