Brocade Communications Systems 12.4.00 Manual De Usuario

Descargar
Página de 267
72
ServerIron ADX Global Server Load Balancing Guide
53-1002437-01
Site persistence in GSLB using hashing
1
Example 
1.1.1.42 yields hash index 45 {(1+1+1+42 %256) = 45}
172.168.10.1 yields hash index 95 {(172+168+10+1 %256) = 95}
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 ServerIron 
reorders the IP address in the DNS server’s response so that the best IP address is first. Then it 
forwards the modified response to the client. 
IP address allocation
IP addresses are first ordered with the lowest IP having rank 1. IPs are allocated to hash buckets in 
a round robin fashion starting with lowest IP first.
Example 
Assume a user has configured IPs 1.1.1.44 and 1.1.1.42 for www.foo.com. The IP addresses are 
sorted in ascending order.
     1.1.1.42 (rank 1)
     1.1.1.44 (rank 2)
The hash allocation for www.foo.com looks like the following:
If the IP address of a client querying for www.foo.com hashes to hash index 2, then 1.1.1.42 will be 
selected as the best IP address for this client.
IP address failure or removal from domain
In the previous example, assume a user removes 1.1.1.44 for domain www.foo.com. The IP 
address for www.foo.com is 1.1.1.42 (rank 1)
In this scenario, all the hash indexes allocated to 1.1.1.44 will be cleaned up. All the empty hash 
indexes will be reassigned to existing IP addresses in round robin fashion as described in the 
section "IP Address Allocation".
Rehash: new IP address for a domain or change of state
This section describes how the ServerIron ADX handles the introduction of a new IP address for a 
domain or change of state of an IP address from down to healthy (rehash mechanism).
Assume the hash-table size is 10, and the following IP addresses are configured for www.foo.com.
     1.1.1.42 (rank 1)
     1.1.1.44 (rank 2)
.42
.44
.42
.................................
.44
255
1
2
0
.................................
.42
.42
.42
.42
1
2
255
0