On Sat, Nov 18, 2017 at 03:02:07PM +1100, Igor Cicimov wrote: > On Sat, Nov 18, 2017 at 2:35 AM, GARET Julien <[email protected]> > wrote: > > > Hello, > > > > > > > > I have a use case here where we want to be able to modify the backend > > between 8 pm et and 8 am, everyday. I was guessing that it would have > > something to do with an acl and the Date header. Do you think it would be > > possible ? > > > > > > > > We are using Haproxy 1.5.14 on CentOS 7. > > > > Upgrade to 1.6 and use: > https://cbonte.github.io/haproxy-dconv/1.6/management.html#9.2-set%20server > > to update the backend with simple cronjob via stats soket.
Or even have a look at the ltime/utime converters that can be used to know the hour of the day and apply an action based on this. Willy

