Weighted distribution of sites with | 1 |
•“Disabling rehash on change in hash weight configuration” on page 79
GSLB hash-based persistence
GSLB provides two methods for persistence- Sticky method and
GSLB weighted hash-based persistence
In addition to providing
Hashing scheme
Each domain maintains a separate hash table. For instance, if GSLB controller has the following two domains www.foo.com and www.test.com configured, then it will maintain one hash table for each domain. The number of hash buckets for each hash table is 256.
The client IP address is hashed to generate a value between 0 and 255.
After the Client IP address is hashed to an index in the hash table, the IP address associated with the hash index in the hash table is selected as the best IP address for the client. The GSLB controller reorders the IP address in the DNS server's response so that the best IP address is placed in the first position. It then forwards the modified response to the client.
IP address allocation
Firstly, IP addresses are ordered with the lowest IP having rank 1. IPs will be allocated to hash buckets in a weighted round robin fashion starting with lowest IP first. This is done so that no synchronization is required across Controllers.
Example
Consider the example where user has configured IPs 1.1.1.44, 1.1.1.43 and 1.1.1.42 for www.foo.com. The IP addresses are first sorted in ascending order.
1.1.1.42(rank 1)
1.1.1.43(rank 2)
1.1.1.44(rank 3)
User also configures hash weights for these IP addresses. Say the weights for the IP addresses are as follows.
1.1.1.42: weight 1
1.1.1.43: weight 1
1.1.1.44: weight 2
ServerIron ADX Global Server Load Balancing Guide | 77 |
|