Forum Discussion
Rich_77667
Nimbostratus
Jan 29, 2008Single_TCP_Stream_HTTP_Round_Robin
Hello all,
I'm trying to write an iRule that allows a single tcp-80 connection to be round robin load balanced. So far I;ve tried the following:
when HTTP_REQUEST {
if { [HTTP::uri] contains "/DocumentManageWS/DocumentService.asmx" } {
pool Filenet-80
log local0. "using pool"
}
}
when LB_FAILED {
pool Filenet-80
LB::reselect
log "Selected server [LB::server] did not respond. Re-selecting node from Filenet-80"
}
Any assistance would be appreciated.
6 Replies
Sort By
- Colin_Walker_12Historic F5 AccountIf you're just trying to set up basic RR load balancing, there's no need for an iRule at all. All you need to do is set up a VIP with a default pool whose load balancing method is set to Round Robin.
- Rich_77667
Nimbostratus
Unfortunately the TCP stream is not reset after each transaction therefore it is continuous. Due to the nature of TCP being connection orientated, the F5 keeps sending traffic to a single server in the pool. The only way I have been able to load balance so far is to have the developer produce multiple TCP connections. - hoolio
Cirrostratus
If you want LTM to parse each HTTP request over the same TCP connection for pool member selection and/or persistence info, you can enable OneConnect. Take a look at Deb's tech tip on OneConnect and let us know if you have any questions (Click here). As Colin suggested, you should be able to use a standard vip (with OneConnect) and pool without a rule to do this. - lsunder_88815Historic F5 AccountTo add some clarification here:
- hoolio
Cirrostratus
I think it is a valid suggestion based on this post from Unruley which Deb referenced in her OneConnect tech tip: - lsunder_88815Historic F5 AccountRich reported that he added the OneConnect profile and it appears to be round robin load balancing the requests from the single string.
Recent Discussions
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