How to implement Windows Server 2003 network load balancing

  

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 services. 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 Broadcasting) 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. Second, the network load balancing implementation of the two computers, one computer name is w2003-1, IP address is 202.206.197.190, another station is named w2003-2, IP address is 202.206.197.191. Plan the network load balancing cluster to use the IP address 202.206.197.195, and plan the network load balancing cluster to have the full computer name cluster.heinfo.edu.cn. 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%"system32"drivers" etc 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 it is officially applied, the client only needs to use cluster.heinfo.edu.cn 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 to provide external services according to the load of each server. . The process of network load balancing is as follows: On each computer that implements network load balancing, only TCP/IP protocol can be installed. Do not install any other protocols (such as IPX protocol or NetBEUI protocol). In the network properties, “ Network Load Balancing<quo; can't be selected as well, which can be viewed from “Network Connection Properties”. 1 Enter the first computer first, log in as an administrator, run from “Administrative Tools" Network Load Balancing Manager", right-click "Network Load Balancing Cluster" In the menu, select “New Cluster” and go to the “Cluster Parameters” interface. Enter the planned cluster parameter address 202.206.197.195 after the “IP address”, use the default value at the subnet mask, and enter cluster.heinfo.edu.cn after the “full Internet name” (may be other The 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 “Connect” interface. 3 Enter the current computer name w2003-1 in the "Host" The network card and IP address of the connected computer are displayed. 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: The username and password of the administrator account are best on each node in Network Load Balancing. 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. 6 Close the Network Load Balancing Manager before entering 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 “Connect” button, and the IP address of the cluster will be listed under “Cluster”. Select this IP address and click the “Complete” button to connect to the cluster. . In the future, if the two servers cannot meet the requirements, 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-balanced 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 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 “Application Server”. , enter “ application server & rdquo;. After selecting ASP.NET, Internet Information Service and application network COM+ access, you can start to install IIS service. After installation, go to the inetpub"wwwroot directory of the first computer, create a new text file, and type the following: This win2003-1 Then save it as the default.htm file. This page will display the following in IE: This w2003-1 In the inetpub"wwwroot directory of the second computer, create a new text file and enter the following: This win2003-2 This page will display in IE ;This w2003-2”, then save this file with the default.htm name. Then, type http://cluster.heinfo.edu.cn 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, the 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 when 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 when it is officially applied, the content of each node computer of the network load balancing cluster will be the same, so that regardless of the use That node responds and guarantees that the content of the access is consistent.

Copyright © Windows knowledge All Rights Reserved