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
I am an F5 Solutions Architect for Service Providers in the Americas, focusing on Virtualization, SP protocols (Diameter, GTP, DNS) and programmability.
Prior to joining F5, I worked as a Wi-Fi Network Engineer for a large U.S. public University, as an Operations Engineer, a network management Software Engineer, and as a Technical Trainer.Kai_Wilke
MVP
Mar 27, 2019Hi 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