Win2003 load balancing setting method (more detailed)

  
                  

So, is there a way or technique to solve such problems? You can use Network Load Balancing clusters in Windows 2000 or Windows Server 2003 (this article describes how to implement 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, that is, you can use up to 32 servers to share External network request service. Network load balancing technology ensures that they respond quickly even under heavy load conditions.

2. Network load balancing only needs to provide an IP address (or domain name).

3. If one or several servers in network load balancing are not available, the service will not be interrupted. Network Load Balancing automatically detects that the server is not available and can quickly reassign client communications to the remaining servers. This protection can help you provide uninterrupted service for critical business processes. You can increase the number of network load balancing servers based on the increase in network traffic.

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 Private Network, Terminal Server, Windows Media Services (Windows Video on Demand, Video broadcast) and other services. At the same time, network load balancing can help improve your server's performance and scalability to meet the growing needs of Internet-based clients.

Network Load Balancing allows clients to access the cluster with a logical Internet name and virtual IP address (also known as a cluster IP address) while preserving the name of each computer.

Below, we will introduce the implementation and application of network load balancing on two ordinary computers with Windows Server 2003 installed.

Of the two computers, one computer is named w2003-1, the IP address is 202.206.197.190, the other is named w2003-2, and the IP address is 202.206.197.191.

Plan a network load balancing cluster with an IP address of 202.206.197.195 and plan a network load balancing cluster with a full computer name of cbf001.com. You need to register this hostname 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 in the %systemroot%system32driversetc directory on the client that needs to access network load balancing (including the network load balancing host), and add a message "202.206.197.195 cluster. Heinfo.edu.cn”, can solve the problem of DNS domain name resolution.

When officially applied, the client only needs to use cbf001.com or IP address 202.206.197.195 to access the server. The network service balance will automatically select 202.206.197.190 or 202.206.197.191 according to the load of each server. Provide services.

Second, the network load balancing implementation process is as follows:

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

1 first enter the first computer, log in as an administrator, run from “Administrative Tools">;Network Load Balancing Manager", right-click "Network Load Balancing Cluster ”, select “New Cluster> from the menu that appears, go to the "Cluster Parameters" interface (Figure 1).

In & ldquo; IP address & rdquo; cluster parameters following the address entered planning 202.206.197.195, subnet mask used at the default value, in & ldquo; full Internet name & rdquo; behind the importation cluster.heinfo .edu.cn (may be another name, but the entered DNS name must match the entered IP address).

If remote control is allowed, check "Allow remote control" and enter a password that can be remotely controlled at "Remote Password" and "Confirm Password".

2 Click the “Next” button to enter the cluster IP address page and then enter the “Port Rules” interface. Click the “Next” button to enter the “Connection” interface. 2).

③ in & ldquo; connected & rdquo; interface & ldquo; host & rdquo; column enter the name of the current w2003-1 computer, and then click & ldquo; connected & rdquo; button in the & ldquo; configuration a The new cluster available interface & rdquo; box shows the network card and IP address of the connected computer. Select the address of the same network segment as the cluster IP address (for the network card that provides external network applications), and then click the “Next” button to enter the “Host Parameters” interface. Click the “Complete” button. The configuration of the Network Load Balancing cluster will start automatically. After a few minutes, the Network Load Balancing cluster configuration is complete.

4Open the second computer and log in as an administrator.

Note: On each node in Network Load Balancing, the username and password of the administrator account are preferably the same.

5 Then, on the first computer, right-click on the newly created cluster and select “Add Host to Cluster” from the menu that appears. The “Connection” interface will appear, enter the computer name of the second computer in “Host”, click the “Connect” button, and the connection will be displayed under “The interface available to the configuration cluster”. Network configuration on your computer. Select the network card of 202.206.197.191, enter the host parameter interface, click the “Complete” button to return to the Network Load Balancing Manager (Figure 3).

⑥ close Network Load Balancing Manager and then enter the Network Load Balancing Manager. Right-click on “Network Load Balancing Cluster” and select “Connect to Existing” from the menu that appears, and the “Connections” interface will pop up.

Enter the name of the first computer, click the “link” button, and the cluster's IP address will be listed under "Cluster", select this IP address, and click the “Complete” button , connect to the cluster to complete.

In the future, if the two servers cannot meet the demand, you can add the third and fourth computers to the network load balancing according to the above steps to meet the requirements.

Third, use IIS service to verify network load balancing

After network load balancing is configured, in order to achieve a specific service, you need to install the corresponding service on the network load balancing computer. For example, in order to achieve load balancing of the IIS website, you need to install the IIS service on the corresponding network load balancing computer.

When installing a network load balancing application, no special method is required. Just install the corresponding service on the computer with network load balancing configured. However, in order for each user to have access to consistent data while accessing different computers through network load balancing, data consistency needs to be maintained on each computer with network load balancing. For example: to achieve network load balancing of IIS on two nodes, in order to ensure the consistency of the content of the two websites, in addition to the same configuration of the two IIS servers, the corresponding website data must be consistent.

In order to verify network load balancing, we can use IIS for authentication. Other applications such as Terminal Services and Windows Media Services are similar to IIS applications. Install the IIS service on each computer with network load balancing as follows:

In the “Add/Remove Programs” box, click “Add Windows Components” to enter the Windows Components Wizard and double-click “&ldquo ; application server & rdquo;, enter the "application server" (Figure 4).

select ASP.NET, Internet Information Services and the application of network COM + access, you can begin installing IIS service.

After installation, go to the inetpubwwwroot directory of the first computer, create a new text file, and type the following:

This win2003-1

Then save it as default. Htm file. This page will display the following in IE:

This w2003-1

In the inetpubwwwroot 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 IE, and then save this file with the default.htm name.

Then, type http//cbf001.com in the IE browser on other computers, it will be displayed as "This win2003-1" or "This win2003-2", according to the load of the network, Network load balancing is automatically forwarded to the first or second computer.

In order to verify the effect, you can unplug the network cable of the first computer or unplug the network cable of the second machine while browsing. You will find that the content you browsed will be different.

Of course, when we are only testing, in order to verify the effect of network load balancing, the content of the two websites is inconsistent, and in the formal application, the content of each node computer of the network load balancing cluster will be consistent. So, regardless of which node response is used, the content of the access is guaranteed to be consistent.

Copyright © Windows knowledge All Rights Reserved