Forum Discussion
benoit_9199
Nimbostratus
Mar 05, 2009persist source_addr in iRule ... doesn't persist
Hi,
I have the following iRule:
when HTTP_REQUEST {
if { [HTTP::uri] ends_with "/" or [HTTP::uri] contains "cgi-bin/" or [HTTP::uri] contains ".dyn" } {
dynamic content, use default pool
if { [matchclass [HTTP::host] contains $::high_traffic_site] } {
case 1a: special high traffic vhost, maximise pool usage:
persist source_addr 255.255.255.255 3600
} else {
case 1b: normal low traffic vhost, limit pool usage (one vhost to
one node) to maximise backend cache
persist hash [crc32 [domain [HTTP::host] 2]] 3600
}
} else {
case 2: static content, goes directly to pool_static with no persistence
pool pool_static
}
}
cases 1b and 2 work perfectly, however case 1a is weird, when tracking the backend node used
i see two node used per source ip. Eg: request 1 goes to 10.0.0.21, request 2 to 10.0.0.26, request 3 back to 10.0.0.21, etc...
6 Replies
- hoolio
Cirrostratus
Do you actually see case 1a being hit? You can check this by adding logging in the iRule. If so, do you see a persistence record created for the client? You can check under Statistics >> Persistence or via the command line using 'b persist all show all'? - benoit_9199
Nimbostratus
- hoolio
Cirrostratus
Which LTM version are you running? Is CMP enabled on the VIP? If so, check SOL7751 (Click here) for details. - benoit_9199
Nimbostratus
- hoolio
Cirrostratus
SOL7751 solution states: - Deb_Allen_18Historic F5 AccountCheck out AskF5 SOL9628: The BIG-IP system does not update a virtual server's CMP status Click here
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