Forum Discussion
Brandon_High_10
Nimbostratus
Jan 27, 2005switch matching incorrectly
We've seen a few errors that seem to come from a request being sent to the wrong pool.
We have an iRule similar to:
when HTTP_REQUEST {
switch -glob [HTTP::path] {
...
Brandon_High_10
Nimbostratus
Feb 03, 2005I made a mistake when I posted the first code sample. The iRule that is having problems looks more like the following. The 'default' condition doesn't specify the pool to use, so it should be using the virtual server's configured default.
when HTTP_REQUEST {
switch -glob [HTTP::path] {
/gwp* {
pool gwp_pool
}
default {
persist none
}
}
This causes intermittent failures as requests which use the default are sent to the incorrect pool. This happens maybe 20% of the time.
If the default condition is changed to:
default {
persist none
pool default_pool
}
then things work properly. While explicitly stating the pool in 'default' allows things to work, it seems like a bug to me since the virtual server's default pool is not honored.
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
