iRules Recipe 4: Static Maintenance Page
The Problem
You wish to provide a static maintenance splash page when all members of a pool serving a Virtual Server are currently down or disabled.
The Configuration
# cat /var/tmp/splash-...
Updated Jun 06, 2023
Version 2.0VernonWells
Employee
Joined August 23, 2012
Kai_Wilke
Mar 27, 2019MVP
Hi GScholz,
add this line somewhere to your iRule...
if 0 { pool AllMYHighAvailableDefaultGWs }
The
if 0 {pool selection}
will never become executed. Its basically a multi-line TCL comment which gets ignored by the TCL compiler. But the syntax is sufficient enough to mark your VS as green as long as the default pool OR
the dummy pool is active...
https://wiki.tcl-lang.org/page/comment
Cheers, Kai