LTM Maintenance Page Lite
Problem this snippet solves: Use the LTM as a webserver as a lite version of a maintenance page. In this case, it returns a maintenance page with text to return when the pool members are not availab...
Published Mar 18, 2015
Version 1.0CodeCentral_194
Cirrus
Joined May 05, 2019
CodeCentral_194
Cirrus
Joined May 05, 2019
Stanislas_Piro2
Nov 03, 2016Cumulonimbus
Hi Kevin,
creating static::stime in RULE_INIT is executed only when irule is modified or loaded.
creating stime in CLIENT_ACCEPTED is executed for every new TCP connection.
The goal of this irule is to create a generic behavior for every VS with this irule assigned. so static variable is the best solution.
the only risk with static variables is multiple irule may not set different value of the same variable, the last which set the variable win. :)