FreddieBrown / stabilize

QUIC/UDP L4 Proxy Load Balancer
GNU General Public License v3.0
1 stars 0 forks source link

Implement Weighted Round Robin Algorithm #12

Closed FreddieBrown closed 4 years ago

FreddieBrown commented 4 years ago

Weighted Round Robin is an enhancement on the standard Round Robin algorithm used by this project. This enhanced algorithm should be implemented in Stabilize to allow its load balancing performance to be improved. This enhancement should be done in the module stabilize::backend::Algo and stabilize::backend::ServerPool::get_next. Changes will also have to be made to stabilize::backend::Server.

FreddieBrown commented 4 years ago

This has been implemented in Algo. It adds new fields to both backend::Server and backend::ServerPool. Solution to this problem is based off the weighted round robin algorithm: http://kb.linuxvirtualserver.org/wiki/Weighted_Round-Robin_Scheduling