Forum Discussion
Brad_Parker_139
Mar 24, 2015Nacreous
you could try setting a timer using table in the LB_FAILED. You will have to remove the table entry if it exists in a LB_SELECTED event.
when LB_FAILED {
if { [active_members http_pool] = 0 } {
if { table lookup -notouch "[virtual name]_fallback" > 0 } {
if { expr [clock seconds] - [table lookup -notouch "[virtual name]_fallback"] >= 7200} {
HTTP::fallback
}
}
else {
table add "[virtual name]_fallback" [clock seconds] lifetime -1
}
}
}
- jgranieri_42214Mar 25, 2015NimbostratusBrad could you use an irule with the "after" command? I know this queues up connections and may not be optimal bt it wold achieve the same result. with the above code snippet would that imply you need to have a LB_selected event as well since your using tables?