Improve load balancing of App Proxy #3196
Labels
comp:appproxy
Related to App Proxy component
urgency:4
As soon as feasible, implementation is essential.
Milestone
Currently we are using a uniform random variable to choose a route from the weighted route list.
The current implementation is a our own Python logic, but this could be optimized by replacing it with
random.choices()
which is provided as a native C implementation in CPython.Also, let's add an option to switch the load balancing algorithm to introduce a proper weighted round robin with shuffling as follows:
The advantages of WRR are:
route_decisions
.As there are several adjustable parameters like
multiplier
andshuffle_period
, I'd suggest to add configurations for load balancing in App Proxy.The text was updated successfully, but these errors were encountered: