Grokking System Design Fundamentals
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...

On this page

  1. Round Robin

Use Cases

  1. Least Connections

Use Cases

Comparison to Round Robin

  1. Weighted Round Robin

Pros

Cons

Use Cases

  1. Weighted Least Connections

Pros

Cons

Use Cases

  1. IP Hash

Example

Pros

Cons

Use Cases

  1. Least Response Time

How Least Response Time Load Balancing Works

Pros

Cons

Use Cases

  1. Random

Pros

Cons

Use Cases

  1. Least Bandwidth

Pros

Cons

Use Cases

  1. Custom Load

How Custom Load Load Balancing Works

Pros

Cons

Use Cases