Load Balancing Procedures
Load Balancing Procedures
Different load balancing procedures are used to balance network traffic on multiple servers. These services are provided as a web service on multiple servers. The goal is to redirect the traffic to a service running on multiple servers in order to protect from a total failure of the system in case of a hardware failure. By adding new hardware, additional computing power can easily be added as needed.
In contrast to distributed computing systems, load balancing is used to ensure that users always use the same server in order to maintain the established connection. For example, when using SSL-secured connections or session ID logged transactions, as in e-mail exchanges, online banking and online shopping load balancing can be used.
Load balancing systems are available as hardware, but also there are pure software solutions. Which product is appropriate depends on the situation and your needs. In general, it is Hareware Load Balancer to Layer 4 p.m. to 7 p.m. switches. The following procedures will explain expensive load balancing products and cheap software solutions. Software solutions usually support only one of the procedures and depends on the use of a single server operating system. Different operating systems like Windows and Linux, can not be used together and with different tasks.
For Linux there is the Linux Virtual Server Project with a specific Linux kernel. From there it is from Microsoft Windows NT 4.0 Windows Load Balancer Service (WLBS).
DNS variant
The classical load balancing is the DNS itself. This is the DNS server of your own domain multiple IP addresses registered in the name of the host can be achieved. Behind every IP address is a separate and independent server. The requests of the clients served the DNS server in sequence with the registered IP addresses. This procedure is very easy to set up.
Problems caused by interactive sessions and connections are secure thanks to the DNS resolved. The DNS request by the client will only connect when you first asked. The client’s other requests always start with the IP address of this server. Access to another server is excluded.
A proper load balancing does not take place with this method. The clients are evenly distributed to the available servers. Whether a client uses a high load or not is not detected. In the worst case, a server runs constantly at full load, another server in the idle mode. In addition, each server requires a valid IP address on the Internet.
1. DNS query for the IP address
2. Resolution of the IP address and answer of the DNS server with IP address
3. Connection to the server
Round-Robin method
The round-robin procedure comes with a single IP address. Instead of the DNS server, it requires a NAT proxy load of requests. Instead of a list of available proxy servers, it forwards all inquiries to his known target systems. Here it remembers the IP address with which server had a connection and runs a new query to this server.
The advantage is that only one IP address on the Internet is needed, and this variant only a small administrative burden. Among other things, it doesn’t require a list of servers to be maintained. However, this is also not a real load. The state of individual servers will not be considered.
NAT with feedback
The step to effective load balancing is only on the active exchange of load information between the servers and the load balancer is possible. The NAT proxy is ever the right direction. It receives information about the actual utilization of each server can be viewed from the data to create a list from which he the next target servers.
The communication between the server and load balancer can be via serial lines, periodically running batch jobs or SNMP queries are made. The installation and configuration effort will be greater. The advantage of this method is the exchange between the server and load balancer. If a server is no longer reachable from the Load Balancer’s IP address just from his list. Does the server, the IP address back to the list.
URL-based procedure
The URL-based methods for load balancing is designed specifically for Web or FTP servers. The load balancer decides based on which server URL for a request is responsible. These indexes are stored on different computers. Before that we need a traffic analysis done to determine what area of more computing power and bandwidth. The analysis during the operation must be repeated regularly, since the user behavior of visitors can change the situation and, where applicable, the lists must be adapted.
As the load by the desired destination directory is, a filtering of the data is carried out, is a special hardware or a very fast computer is needed. The procurement of expensive or special hardware is often unavoidable.
This procedure is purely for web and not suitable for e-mail servers or services with suitable transactions.
Service-based procedures
Most run several services, such as HTTP, FTP and e-mail on the same server. Under load is the parallel operation as a drawback, if a utility computing services, all other performance steals.
All services use a TCP port through which a data packet of an application or service is assigned. Looking at the different services on separate servers and operates the load can be distributed depending on services. Previously, a traffic analysis of the data held by the services with a high consumption of computing power and bandwidth to find out. This procedure is much easy to install because the server only with the software must be installed, the service then they operate. The routing takes over, for example, a NAT router configured with port forwarding. This is a port in the router a fixed IP address assigned.
Which procedure to choose
None of the procedures above can be used in any type of situation as a single solution. Usually a combination of two or more processes are used. Either nested or mutually integrated. In any case, a complex system that is constantly monitored and adapted to new requirements need to be adjusted.
Because the data on each server must be always in sync, it is recommended that a central storage solution for all servers. This NAS or SAN systems are anything but cheap, and they exist in different versions of SCSI, Firewire, Gigabit Ethernet or Fiber Channel. Before using a Load Balancer are the existing programs and applications to be examined. Bad programmed slow applications and applications bring a Load Balancer to its limits. An extensive analysis of the data is absolutely necessary.




