Help Center/ Elastic Load Balance/ FAQs/ Backend Servers/ How Load Balancing Algorithms and Sticky Session Type of a Backend Server Group Are Related?
Updated on 2025-06-30 GMT+08:00

How Load Balancing Algorithms and Sticky Session Type of a Backend Server Group Are Related?

Table 1 and Table 2 list the sticky session types and load balancing algorithms supported by a backend server group.

Table 1 Sticky session types supported by dedicated load balancers

Backend Server Group Protocol

Load Balancing Algorithm

Sticky Session Type

  • TCP
  • UDP

Weighted round robin

Source IP address

Weighted least connections

Source IP address

Source IP hash

Not supported

  • HTTP
  • HTTPS
  • GRPC

Weighted round robin

  • Load balancer cookie
  • Application cookie

Weighted least connections

  • Load balancer cookie
  • Application cookie

Source IP hash

Not supported

QUIC

Connection ID

Source IP address

Table 2 Sticky session types supported by shared load balancers

Backend Server Group Protocol

Load Balancing Algorithm

Sticky Session Type

  • TCP
  • UDP

Weighted round robin

Source IP address

Weighted least connections

Source IP address

Source IP hash

Not supported

HTTP

Weighted round robin

  • Load balancer cookie
  • Application cookie

Weighted least connections

  • Load balancer cookie
  • Application cookie

Source IP hash

Not supported

  • If you set Load Balancing Algorithm to Source IP hash, you do not need to manually enable and configure Sticky Session. Source IP hash allows requests from the same client to be directed to the same server.
  • If you set Load Balancing Algorithm to Weighted round robin or Weighted least connections, you need to manually enable and configure Sticky Session.