Network load balancing (transfer)

xiaoxiao2021-03-05  49

In many of the current many network applications, sometimes one server often meets the client's requirements, and can only solve the problem by adding the server.

So, is there a way or technology to solve such problems? You can use the network load balancing cluster in Windows 2000 or Windows Server 2003 (this article will introduce the implementation method of network load balancing technology in Windows Server 2003).

First, the advantages of network load balancing

1. Network Load Balancing allows you to propagate incoming requests to up to 32 servers, you can use up to 32 servers to share the external network request service. Network Load Balancing Technology guarantees that even if they are very heavy, they can make a fast response.

2. Network load balancing only one IP address (or domain name) is required.

3. If one or several servers in the network load balancing are not available, the service will not be interrupted. When the network load balancing automatically detects that the server is unavailable, it can quickly reassign the client communication in the remaining server. This protection can help you provide uninterrupted services for your key business programs. The number of network load balancing servers can be added based on the increase in network access.

4. Network load balancing can be implemented on a normal computer.

In Windows Server 2003, network load balancing applications include Internet Information Services (IIS), ISA Server 2000 Firewall and Proxy Server, VPN Virtual Special Network, Terminal Server, Windows Media Services (Windows Video Broadcast, Video Broadcasting). At the same time, network load balancing helps improve your server performance and scalability to meet growing Internet-based client-based needs.

Network Load Balancing allows clients to access clusters with a logical Internet name and virtual IP address (also known as a cluster IP address) while retaining their respective names per computer.

Below, we will introduce the implementation and application of network load balancing on two installed WINDOWS Server 2003. Among the two computers, a computer name is W2003-1, the IP address is 202.206.197.190, and the other name is W2003-2, the IP address is 202.206.197.191.

Planning network load balancing clusters used in the IP address of 202.206.197.195, planning network load balancing clusters complete computer names of Cluster.heinfo.edu.cn. You need to register this host name in the Heinfo.edu.cn domain and set the address to 202.206.197.195. If you don't have DNS, you can edit the HOSTS file under the% systemroot% system32driverseTc directory on the client that needs to access the network load balancing, add a message "202.206.197.195 cluster.heinfo.edu.cn", You can solve the problem of DNS domain name resolution.

When formal application, the client only needs to use Cluster.heinfo.206.197.195 to access the server, and the network service balance will automatically select 202.206.197.190 or 202.206.197.191 or 202.206.197.191 according to the load of each server. .

The realization process of network load balancing is as follows:

On each computer that implements network load balancing, you can only install TCP / IP protocol, do not install any other protocol (such as the IPX protocol or NetBeui protocol), in the network properties, "Network Load Balancing" can not be selected, This can be viewed in Network Connect Properties.

1 Enter the first computer, log in as an administrator, run "Network Load Balancing Manager" from Administrator, right-click Network Load Balancing Cluster, select "New Cluster from the menu that appears ", Enter the" cluster parameter "interface (Figure 1). figure 1

In the "IP Address", enter the planned cluster parameter address 202.206.197.195, use the default value at the subnet mask, enter Cluster.heinfo.edu.cn after "Full Internet Name" (or other name, but The input DNS name must match the input IP address).

If remote control is allowed, select "Allow Remote Control" and enter a password that can be performed remotely at "Remote Password" and "Confirm Password"

2 Click the "Next" button to enter the Cluster IP Address page and enter the Port Rules interface. Click the "Next" button to enter the "Connection" interface (Figure 2).

figure 2

3 Enter the name W2003-1 of the current computer in the "Connection" interface, then click the "Connection" button to display the network card of the connected computer in "Interface to configure a new cluster" box. And IP address. Select the address of the same network segment with the cluster IP address (for the network card for providing network applications), then click the "Next" button to enter the Host Parameters interface, click the "Finish" button, the system will automatically start the network load balancing The configuration of the cluster. After a few minutes, the network load balance cluster configuration is complete.

4 Open the second computer and log in to the administrator.

Note: On each node in the network load balancing, the username and password of the administrator account are best consistent.

5 Then, on the first computer, right-click the newly created cluster, select "Add Host to Cluster" from the menu that appears. The "Connect" interface will appear. Enter the computer name of the second computer in the "Host". Click the "Connection" button to display the network configuration on the connected computer under the "Interface for Configuring Clusters". Select the network card of 202.206.197.191, enter the host parameter interface, click the "Finish" button to return to the network load balancing manager (Figure 3).

image 3

6 Turn off the network load balancing manager and then enter the network load balancing manager. Right-click Network Load Balancing Cluster, select "Connect to existing" from the menu that appears, will pop up "Connect" interface.

Enter the name of the first computer, click the "Connection" button, where the cluster will list the IP address of the cluster, select this IP address, and click the "Complete" button to connect the cluster.

In the future, if the two servers can not meet the needs, they can be added to the third unit, and the 4th computer to the network load balancing to meet the requirements. Third, use IIS service to verify network load balancing

After the network load balancing configuration, in order to implement a specific service, you need to install the appropriate service on a computer that is balanced. For example, in order to implement the load balance of the IIS website, IIS services are required to be installed on a corresponding network load balancing.

When installing a network load balancing application, there is no need for a special method, and you only need to install the appropriate service on a computer configured with a network load balancing. However, in order to allow each user to access different computers over a network load, they can access the consistent data, and need to maintain the consistency of data on each computer equilibrium on the network load. For example, the network load balancing of two nodes is realized, in order to ensure the consistency of the two website content, in addition to the configuration of the two IIS servers, the corresponding website data must be consistent.

In order to verify network load balancing, we can verify via IIS, and other applications such as terminal services, Windows Media services are similar to IIS applications. Installing IIS services on each computer balanced in the network load, the method is as follows:

In the Add / Remove Programs, click "Add Windows Components", go to the Windows Component Wizard, double-click Application Server, and enter the Application Server (Figure 4).

Figure 4

After selecting an ASP.NET, Internet Information Services, and Application Network COM access, you can start installing the IIS service.

After installation, enter the first computer's INETPBWWWROOT directory, create a new text file, enter the following:

this win2003-1

Then save it as a default.htm file. This page will be displayed in IE:

THIS W2003-1

In the INETPBWWWROOT directory of the second computer, create a new text file, and enter the following:

this win2003-2

This page will display "THIS W2003-2" in the IE browser, and then save this file with a default.htm name.

Then, type http // cluster.heinfo.edu.cn in the IE browser on other computers, will be displayed as "this win2003-1" or "this win2003-2", depending on the network load, network load balancing It will be automatically forwarded to the first computer or the second computer. In order to verify the effect, you can unplug the first computer's network cable or unplug the second machine's network cable, will find that the browse will be different. Of course, when we are only tested, in order to verify the effect of the network load balance, the contents of the two websites are inconsistent, and the content of each node computer of the network load balancing cluster will be consistent while formal application, so that no matter whether it is used That node response ensures that the content of the access is consistent.

转载请注明原文地址:https://www.9cbs.com/read-32863.html

New Post(0)