Forum Discussion

benoit_9199's avatar
benoit_9199
Icon for Nimbostratus rankNimbostratus
Aug 03, 2009

Last hope page

 

Hi,

 

 

I have a working F5 system (v10) - bug excepted - but i'm missing a simple fonctionnality i had using haproxy on a "standard" server:

 

 

I had set-up a local webserver who was serving one page only, using 307 redirect, informing users that the

 

system was totally down and inviting them to try again latter.

 

 

Now with the bigip, if all nodes are down i don't have any answer, nor even a connection to port 80.

 

 

Is there a way to have a static page/text been delivered in this case ?

 

 

thanks

3 Replies

  • Hum, would something like this work ?

     
     when LB_FAILED { 
        HTTP::respond 50x content { 
            
               
                 Apology Page 
               
               
      ... 
              
            
        } 
     } 
     
  • LB_FAILED is triggered on every request failure, so that would work to handle any single request. You get similar functionality using the Fallback Host on the HTTP profile. LTM can send a 302 redirect to the client without an iRule.

     

     

    You could also use an iRule to send a response if all pool members are down. There are a few examples in the Codeshare for "maintenance" iRules (Click here). Though these would need to be updated to use the class command (Click here)instead of lindex.

     

     

    Or you could use priority groups to send the request to a second set of servers if the first set is down.

     

     

    Aaron