Can anyone shine any light for me as to why this may not be working:
when HTTP_RESPONSE {
if { [HTTP::status] > 500 }{
set failure 1
}
}
when LB_SELECTED {
if { $failure > 0 } {
LB::detach
LB::mode rr
LB::reselect pool [LB::server pool]
}
}
When I do this I am getting a The connection to the server was reset while the page was loading, as if it doesn't like either server.
One thing I am noticing, in my logs, our basic health check is getting a 500, every other check:
- - - [21/Apr/2009:14:29:49 -0700] "GET /" 200 108 "-" "-"
- - - [21/Apr/2009:14:29:50 -0700] "GET /" 500 3328 "-" "-"
However, the page I am going to is not yielding a 500.