Win2003 Load Balancing Setup method (more detail) _win server

Source: Internet
Author: User
-->

In many current network applications, sometimes a server can not meet the requirements of the client, at this time only by adding servers to solve the problem.

So is there a way or technology to solve such problems? You can use a Network Load Balancing cluster in Windows 2000 or Windows Server 2003 (this article describes how Network Load Balancing technology is implemented in Windows Server 2003).

The advantages of Network Load Balancing

1. Network Load Balancing allows you to propagate incoming requests to up to 32 servers, where you can use up to 32 servers to share external network request services. Network Load Balancing technology ensures that they can respond quickly even in heavy loads.

2. Network Load Balancing external only need to provide an IP address (or domain name).

3. Services are not interrupted if one or more of the servers in the Network Load Balancing are unavailable. Network Load Balancing automatically detects that the server is unavailable and can quickly reassign client traffic to the remaining servers. This protection will help you provide uninterrupted service for your critical business processes. You can increase the number of Network Load Balancing servers based on increased network traffic.

4. Network Load Balancing can be implemented on a regular computer.

In Windows Server 2003, Network Load Balancing applications include Internet Information Services (IIS), ISA Server 2000 firewall and proxy servers, VPN virtual private networks, terminal servers, Windows Media services ( Windows video-on-demand, video broadcast) and other services. At the same time, Network Load Balancing can help improve your server performance and scalability to meet the growing demand for 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 retaining the respective names of each computer.

Below, we will introduce the implementation and application of Network Load Balancing on two common computers with Windows Server 2003 installed.

In both computers, one computer name is W2003-1,ip address 202.206.197.190, and the other is named W2003-2,ip address 202.206.197.191.

The planning Network Load Balancing cluster uses an IP address of 202.206.197.195, and the complete computer name for the planning Network Load Balancing cluster is cbf001.com. You need to register this host name in the heinfo.edu.cn domain and set the address to 202.206.197.195.

If you do not have DNS, you can add a message by editing the Hosts file in the%SYSTEMROOT%SYSTEM32DRIVERSETC directory on clients that need access to Network Load Balancing (including Network Load Balancing hosts) 202.206.197.195 Cluster.heinfo.edu.cn ", you can resolve the problem of DNS domain name resolution.

When formally applied, The client only needs to use cbf001.com or IP address 202.206 197.195来 to access the server, and the network service balance automatically chooses 202.206.197.190 or 202.206.197.191 to provide services based on the load of each server.

Second, the Network load balance implementation process is as follows:

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

① first into the computer, log on as an administrator, run Network Load Balancing Manager from Administrative Tools, right-click Network Load Balancing clusters, select New cluster from the menu that appears, and go to the cluster parameters interface (Figure 1).

After IP address, enter the planned cluster parameter address 202.206.197.195, use the default value at the subnet mask, and enter cluster.heinfo.edu.cn (or other name, after full Internet name). However, the DNS name entered must match the IP address entered.

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

② Click the "Next" button, enter the cluster IP Address page and then enter the "port rules" interface, click the "Next" button to enter the "Connection" interface (Figure 2).

③ Enter the name of the current computer in the Host column of the connection interface w2003-1, and then click the Connect button to display the network card and IP address of the connected computer in the Configure a new cluster available interface box. Select the address of the same network segment as the cluster IP address (for external network applications), then click the "Next" button, enter the setting "Host Parameters" interface, click the "Finish" button, the system will automatically start the Network Load Balancing cluster configuration. After a few minutes, the Network Load Balancing cluster configuration completes.

④ opens the second computer and logs in as administrator.

Note: On each node in Network Load Balancing, the username and password of the Administrator account are best consistent.

⑤ then, on the first computer, right-click the newly created cluster and choose Add Host to cluster from the menu that appears. The connection interface appears, and the computer name of the second computer is entered in host, and the connection button will display the network configuration on the connected computer under the "available interfaces for configuring the cluster." Select the 202.206.197.191 network card, enter the host parameters interface, click the "Finish" button, you can return to net Load Balancing Manager (Figure 3).

⑥ shuts down Network Load Balancing Manager before entering Network Load Balancing Manager. Right-click Network Load Balancing cluster and choose Connect to existing from the menu that appears, and the connection interface will pop up.

Enter the name of the first computer, click the "Connect" button, under "Cluster" will list the cluster's IP address, select this IP address, and click the "Finish" button, connect the cluster can be completed.

Later, if the two servers do not meet the requirements, you can add the 3rd and 4th computers to Network Load Balancing to meet the requirements in the above steps.

Verifying Network Load Balancing with IIS services 

After Network Load Balancing is configured, to achieve a specific service, you need to install the corresponding services on the Network Load Balancing computer. For example, to achieve load balancing on an IIS Web site, you need to install the IIS service on the appropriate Network Load Balancing computer.

When installing Network Load Balancing applications, you do not need a special method to install the appropriate services on a computer that is configured for Network Load Balancing. But in order for each user to gain access to consistent data while accessing different computers through Network Load Balancing, data consistency needs to be maintained on each computer that is in Network Load Balancing. For example, the Network Load Balancing of IIS with two nodes, in order to ensure the consistency of two Web site content, in addition to the same configuration of the two IIS servers, the corresponding site data must be consistent.

To verify Network Load Balancing, we can authenticate through IIS, and other applications such as Terminal Services, Windows Media services are similar to those used by IIS. Install the IIS service on each computer in Network Load Balancing by doing the following:

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

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

After installation, enter the Inetpubwwwroot directory of the first computer, create a new text file, and enter the following:

This win2003-1

Then save it as a 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 browser and then save this file as a Default.htm name.

Then, type http//cbf001.com in IE on the other computer, which will be displayed as "this win2003-1" or "This Win2003-2", and Network Load Balancing will be automatically forwarded to the first computer or second computer, depending on the network's load.

To verify the effect, you can unplug the first computer or unplug the network cable from the second machine while browsing, and you will find different content.

Of course, we were just testing the time, to verify the effect of Network Load Balancing, the content of two Web sites is inconsistent, and in the formal application, the contents of each node computer of the Network Load Balancing cluster will be the same, so that regardless of the node response, the access content is guaranteed to be consistent.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.