Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page

Show all

Help Center/ Elastic Load Balance/ FAQs/ Listeners/ What Are the Relationships Between Load Balancing Algorithms and Sticky Session Types?

What Are the Relationships Between Load Balancing Algorithms and Sticky Session Types?

Updated on 2023-03-30 GMT+08:00

Sticky sessions ensure that requests from the same client are routed to the same backend server. Table 1 lists the types of sticky sessions.

Table 1 Sticky sessions supported by load balancers

Load Balancing Algorithm

Sticky Session Type

Layer 4 (TCP/UDP)

Layer 7 (HTTP/HTTPS)

Weighted round robin

Source IP address

Supported

Not supported

Load balancer cookie

N/A

Supported

Application cookie

N/A

Not supported

Weighted least connections

Source IP address

Not supported

Not supported

Load balancer cookie

N/A

Not supported

Application cookie

N/A

Not supported

Source IP hash

Source IP address

N/A

Not supported

Load balancer cookie

N/A

Not supported

Application cookie

N/A

Not supported

Generally, the weighted round robin algorithm is recommended. Sticky sessions at Layer 4 use source IP addresses to main sessions, and sticky sessions at Layer 7 use load balancer cookies.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback