Forum Discussion
Peter_Wohlers_7
Nimbostratus
Dec 28, 2006hash persistence based on source ip network
We have an application that requires persistence, but causes the client to initiate two near-simultaneous connections.
Initially I tried using a persistence profile:
profile persis...
Peter_Wohlers_7
Nimbostratus
Dec 28, 2006I've come up with something that looks like it might work:
rule persnickety_application {
when HTTP_REQUEST {
set first [ getfield [IP::remote_addr] "." 1]
set second [ getfield [IP::remote_addr] "." 2 ]
set third [ getfield [IP::remote_addr] "." 3 ]
pool temperamental_servers
set client_net [ crc32 [ concat $first $second $third ] ]
persist hash $client_net
}
}
but is there a way to consolidate the three getfield operations into a single stroke?
Thoughts on how well this might work?
Thanks,
Peter
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