On Fri, Apr 17, 2015 at 3:26 AM, Dennis Jacobfeuerborn < denni...@conversis.de> 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.