Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
ali ahmed
Weighted in round robin and least connections

ali ahmed

Apr 13, 2024

what does the Weighted keyword means here and what is the difference between it and the connections count in least conenctions does it means the resources of the server capacity or how to calculate the weight of a server

0

0

Comments
Comments
S T
S Ta year ago
const weightedConnected = connections / weight; // Lower is better

In the example on the page, you take the following example.

10 connections / 0.2 = 50 weighted connections

This is the lowest, and therefore new connections will connect to this...