Forum Discussion

tomshenhao_2343's avatar
tomshenhao_2343
Icon for Nimbostratus rankNimbostratus
Oct 13, 2017

autmoate datagroup value change

We always need to put redirects when doing some website changes. Therefore we made one irule and several datagroup to do it. If we need the redirects, we just need to change the value of the key of datagroup from false to true.

 

So for this operation, could we use any method to automate it?

 

1 Reply

  • In the HTTP profile is a fallback host. When the pool is down it will send them a 302 redirect to the specified URL. It could even be a redirect to the maintenance page below.

     

    Create a maintenance page somewhere on a webserver that has some nice message, we are under maintenance - then disable it.

     

    Create a monitor where the alias address and port point to the webserver. The send string is a GET /maintenance.html for the the maintenance page. The receive string is the nice message. And tick the reverse option.

     

    Add this monitor to all the application pools you want to bring down for maintenance.

     

    Now when you bring up the maintenance page, the new monitor will see its up, reverse logic means the monitor will then go down, this will bring all your pools down, then the redirect in the HTTP profile will kick in and send all requests to the maintenance page.