Forum Discussion
t-roy
Nimbostratus
Nov 28, 2012uneven load with Universal persist profile
I created a universal persistence profile called X-FORWARDED-FOR and am using a very simple irule to persist on the x-forwarded-for header:
ltm persistence universal X-FORWARDED-FOR {
...
t-roy
Nimbostratus
Nov 28, 2012well I think things are looking better now that I increased the of requests I threw at it. Had to make a change:
got error HTTP::header in rule X-FORWARDED-FOR) requires an associated FASTHTTP profile on the virtual server
changed rule to:
when HTTP_REQUEST {
set xff [HTTP::header "x-forwarded-for"]
persist uie [HTTP::header "x-forwarded-for"]
log local0. "[IP::client_addr]:[TCP::client_port]: XFF: $xff"
}
when SERVER_CONNECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: persist record: [persist lookup uie $xff]"
log local0. "[IP::client_addr]:[TCP::client_port]: Connected: [IP::server_addr]:[TCP::server_port]"
}
so here are the results varying the IPs equally:
40290:18
40310:14
40320:13
40330:16
here ar the results if the XFFs are all from similar subnets:
40290:14
40310:15
40320:16
40330:14
Think this was just a case of me not testing thoroughly enough... This load distribution looks great to me. Thanks for the help.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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