Forum Discussion
Shu_97237
Nimbostratus
Jul 30, 2012Message-based load balancing problem
Hi,
So far, it has been a hassle for me to configure MBLB. (see my first question: https://devcentral.f5.com/Community/GroupDetails/tabid/1082223/aft/2163630/asg/50/Default.aspx, ...
Fabian_Arroyo_M
Nimbostratus
Sep 09, 2015Hi Shu, the correct iRule would it?
when CLIENT_ACCEPTED {
set client_closed 0 TCP::collect
}
when CLIENT_CLOSED {
set client_closed 1
}
when SERVER_CONNECTED { after 1000 -periodic if {$client_closed} {TCP::close} }
when CLIENT_DATA {
binary scan [TCP::payload] II head rlen
if {($head & 0x3) == 1} {
if {[TCP::payload length] < [expr {8 + $rlen}]} {
TCP::collect [expr {$rlen + 8 - [TCP::payload length]}]
return
}
}
pool my_pool
TCP::release [expr {$rlen + 8}]
TCP::notify request
TCP::collect
}
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