Pool's algorithm

Load balancing is one of the key features of VNG Cloud's Load Balancer (vLB) service. It is the process of receiving client requests at the listener and distributing them across multiple members (servers) according to established algorithms. This feature allows you to increase the processing capacity of your services by creating multiple or a cluster of servers behind the Load Balancer.

The load balancing algorithm determines which member (server) is chosen for each incoming request. VNG Cloud's Load Balancer offers three types of load balancing algorithms:

  1. Round Robin

  2. Least Connections

    Requests are directed to the server with the fewest active connections at the current time. This algorithm is considered dynamic, as it constantly tracks the number of active connections on each server.

    How it Works (Example):

    Imagine you have 5 clients connected to 2 servers. When a 6th client sends a request:

  3. Source IP

    This algorithm combines the source and destination IP addresses of the client and server to create a unique hash key. This key is used to assign the client to a specific server, and it can be recreated if the session times out or is disconnected for any reason. This ensures that the client's requests are consistently directed to the same server, which is useful for maintaining things like shopping cart items across sessions.

Last updated