Beruflich Dokumente
Kultur Dokumente
In the virtual web cluster there is no switch that is the (first) target for all requests. Since there is no one that can distribute the traffic we need to make all servers to receive all traffic and then the servers should investigate the packet and exactly one should say yes I do it! All the others should skip the packet.
All servers have the same VIP address and the same MAC address!
VIP
MAC
MAC
MAC1
S S
VIP R
IP2
MAC
MAC2
VIP
IPn
MAC
MACn
S S
VIP R
IP2
VIP
IPn
MMAC MACn
If we can control the authoritative DNS server we translate the first DNS request to server1, the next one to server-2 etc. This will make the clients to ask different servers but
2. HTTP redirection
The first web server responds with a status code 301 or 302 to instruct the client to resubmit the request to another server.
(p 284)
+ the rerouting can be done on a medium granularity level and can be content aware. - We will get extra long distance traffic.
3. URL rewriting
The server which responds to the first file request dynamically changes all URL to point to the server which should do the work in the future. - May cause extra DNS traffic and cause extra work on the redirecting web server for interpretation of links. + This may be implemented totally on user level.
(p 286)
Dispatching
Up to now we have mostly been concerned with the technology to get the request to be served by a certain server. Now we will discuss the decision issue: Which server should do the job and when decided it will be implemented by the methods described earlier. This is called Dispatching of the request.
(p 288, 289)
10