Well, good news and bad news. Good news is everything works great under normal conditions. Bad news is this logic doesn't seem to do anything:
when LB_FAILED {
set failed_server [LB::server addr]
log local0. "Connection to server $failed_server failed! Reselecting..."
LB::mode rr
LB::reselect pool MyPool
for {set x 0} {$x<4} {incr x} {
if { [LB::server addr] eq $failed_server } {
LB::mode rr
LB::reselect pool MyPool
log local0. "Attempt $x ==>New server is [LB::server addr]"
}
}
}
The log from my testing from a single browser during a failure:
Connection to server 10.1.11.111 failed! Reselecting...
Attempt 0 ==>New server is 10.1.11.111
Attempt 1 ==>New server is 10.1.11.111
Attempt 2 ==>New server is 10.1.11.111
Attempt 3 ==>New server is 10.1.11.111
Also, I see the LB_FAILED event when I am doing single browser testing, but when we do a load test from loadrunner, I don't see this event trigger. Any ideas why? Any ideas why the server isn't changing? There are 15 additional resources