Le 7 juillet 2017 2:50:25 AM rgamarra <[email protected]> a écrit :
Hi,
In the context of multiple traffic patterns (say different regions), I'm
using a dedicated pool of servers for each region, each one with its round
robin load-balancing strategy.
Now, is there any way to customize the round robin weight according to the
time-of-the-day?
The idea is to forma a common pool with all the servers, and balance
between them adjusting the weights according to the time the peak traffic
hour for each region, shifting resources at a given time to the most
demanded region.
Is there any way to perform that, or any recommendation?
Hi. I see three way:
A crontab lauching a script dynamically setting the weight.
Lua backgroud task checking hour and changing the weigth. (Infinite loop,
sleep 1s, check hour, change weight)
Finally, using acl with current time sample fetch for choosing between
backends with different configuration.
Thierry
Thanks a lot.
--
Rodolfo Federico Gamarra