I find this iRule and help, it works perfectly, the traffic is balanced as I hope, but I'm beginning to have failover events. This message appears in the CLI "Re-starting tmm and Re-starting tmm1"
This iRule will cause this events?
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
}