VNSWRR module is an efficient load balancing algorithm that is smooth, decentralized, and high-performance compared to Nginx's official
Build Tengine with this module from source:
vnswrr load balancing algorithm.
In the same pressure environment (wrk, 500 concurrency, keepalive, 2000 endpoint), the CPU consumption of
VNSWRR algorithm accounts for
VNSWRR algorithm, the CPU consumption of
39%) is an order of magnitude higher than
In the above environment, the QPS of
VNSWRR increases by
60% compared with
Observing the changes of QPS and RT in the different back-end number scenarios.
Under SWRR algorithm, when the number of back-end for every 500 addition, then the QPS of Nginx decreases by about 10% and RT increases by about 1 ms. But under the VNSWRR algorithm, QPS and RT do not change much.