Forum Discussion
3 Replies
Sort By
- The_BhattmanNimbostratusWell you could do it if you assume the fall back is working when there is a LB failure.
when RULE_INIT { log local0. "Initialize the count of requests: [STATS::set fallback "current_count" 0]" set ::count 0 } when HTTP_REQUEST { if { [HTTP::uri] starts_with "/give-me-stats-baby" } { set html_content "Fallback StatisticsIncremented the current count to: [STATS::incr fallback 'current_count']" HTTP::respond 200 content $html_content } } when LB_FAILED { log local0. "Incremented the current count to: [STATS::incr fallback "current_count"]" }
- mhuss3y_61750NimbostratusThanks CB.. i receive error message:
- The_BhattmanNimbostratusgo ahead and remove line 2 out of the irule.