On 17.04.2015 00:51, Igor Cicimov wrote: > On Fri, Apr 17, 2015 at 3:26 AM, Dennis Jacobfeuerborn < > [email protected]> wrote: > >> Hi, >> I'm trying to find the best way to toggle maintenance mode for a site. I >> have a regular and a maintenance backend defined an I'm using something >> like: >> >> frontend: >> acl is_maintenance always_false >> use_backend back-maintenance if is_maintenance >> default_backend back >> >> Since I saw some ACL modifying command for the unix socket I figured >> that I could use those to switch the acl dynamically but apparently >> while there are get/add/del/clear commands there is no actual command to >> set an acl. >> Is there a way to accomplish this kind of dynamic switching? >> >> Regards, >> Dennis >> >> > How about putting the maintenance server as backup in the pool and removing > the real server from the pool when due for maintenance and then putting it > back when finished.
I was hoping to avoid this as I also want to switch between the maintenance/live site based on other ACLs e.g. based on the clients IP address or a header. In that case removing the live servers isn't really an option. Regards, Dennis

