AWS Elastic Load Balancer (ELB) -- Affinity & CZLB & SSL

1. Sticky Sessions (Session Affinity)

Enable Sticky Sessions

At the target group level. edit the attributes:

AWS Elastic Load Balancer (ELB) -- Affinity & CZLB & SSL_第1张图片


AWS Elastic Load Balancer (ELB) -- Affinity & CZLB & SSL_第2张图片


Refresh this page multiple times, as we can see, we get access to the same instance.

AWS Elastic Load Balancer (ELB) -- Affinity & CZLB & SSL_第3张图片


And we can see the cookie information as below:

AWS Elastic Load Balancer (ELB) -- Affinity & CZLB & SSL_第4张图片


The cookies is past to the instance, this is how stickness works.

2. Cross-Zone Load Balancing

你可能感兴趣的:(AWS Elastic Load Balancer (ELB) -- Affinity & CZLB & SSL)