A load balancing method is an algorithm for GWLB to allocate traffic to backend target groups. Each method produces different load balancing effects.
Load Balancing Algorithm
Consistent hashing based on 5-tuple: consistent hashing based on the 5-tuple of source IP address, source port, destination IP address, destination port, and transport protocol. The balancing algorithm cannot be modified after creation.
Consistent hashing based on 3-tuple: consistent hashing based on the 3-tuple of source IP address, destination IP address, and transport protocol. The balancing algorithm cannot be modified after creation.
Consistent hashing based on 2-tuple: consistent hashing based on the source IP address and destination IP address. The balancing algorithm cannot be modified after creation.
Load Balancing Stickiness
Adding or removing an instance in the target group: All traffic will be rehashed.
If a certain healthy instance in the target group becomes unhealthy: The traffic of the faulty node will be rehashed to other healthy nodes.
If a certain unhealthy instance in the target group becomes healthy: The traffic belonging to the recovered node will be redirected back to it.