hello
i have haproxy directing traffic to a number of backends.
these backends can auto scale upon traffic; my goal is to change "maxcon" depending on "total time" or "backend time" that a request took to complete.
for example:
if totaltime < 1 second ; maxcon = 1000if totaltime < 2 second: maxconn = 500etc...
the goal is to hold connections in queue till backend auto scaling is in effect.
Can i do the above scenario within haproxy config or a cron that checks haproxy socket/totaltime and act accordingly is a better idea?
do you have an alternative advice for me to accomplish that goal ?
Thanks in advance
i have haproxy directing traffic to a number of backends.
these backends can auto scale upon traffic; my goal is to change "maxcon" depending on "total time" or "backend time" that a request took to complete.
for example:
if totaltime < 1 second ; maxcon = 1000if totaltime < 2 second: maxconn = 500etc...
the goal is to hold connections in queue till backend auto scaling is in effect.
Can i do the above scenario within haproxy config or a cron that checks haproxy socket/totaltime and act accordingly is a better idea?
do you have an alternative advice for me to accomplish that goal ?
Thanks in advance