IIS load-balanced NLB Solution

Source: Internet
Author: User

in many existing network applications, sometimes a server can not meet the requirements of the client, at this time only by increasing the server to solve the problem.
So, is there a way or technology to solve such problems? You can use Network Load Balancing clusters in Windows 2000 or Windows Server 2003 (this article describes how Network Load Balancing technology is implemented in Windows Server 2003).

one, the advantages of Network Load Balancing
1. Network Load Balancing allows you to propagate incoming requests to up to 32 servers, which can use up to 32 servers to share external network request services. Network Load Balancing technology ensures that they can respond quickly even when the load is heavy.
2. Network Load Balancing only one IP address (or domain name) is required for external access.
3. If one or more servers in Network Load Balancing are unavailable, the service will not be interrupted. Network Load Balancing detects when the server is not available and can quickly reassign client traffic to the remaining servers. This protection can help you provide uninterrupted service to 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.
II: Process Planning
Environmental Structure
2 servers, the system is 2003, are single network card "some said to double network card, there are two network card when only for the convenience of remote management, the NLB relationship is not very large, the failure to transfer to is very need",
web1:10.0.0.1
web2:10.0.0.3
cluster virtual ip:10.0.0.2

1, first of all, we have to set the server name and IP address, this is the premise, here is not
2. Open WEB1, log on as an administrator, run Network Load Balancing Manager from Administrative Tools, right-click Network Load Balancing cluster

3, select "New Cluster" from the menu that appears and go to the "Cluster parameters" interface. Next after setting is complete

4, can be added according to their own situation, and then the next step




5, see the interpretation of the lower port rules, according to their own situation to add and edit, and then next

6, here is a single network card, if it is a multi-network card, it will show all, in the choice of time must pay attention, choose the other side to provide the service IP address, here on a also does not matter!

7, set the priority of the first server


8, is in the configuration, a little will be completed to become green!

9, at this point, the first one has been configured to complete, the following is to join the second child server, the same way, here is not, and finally completed, are in the aggregation state

later, if the two servers do not meet the requirements, you can add the 3rd, 4th computers to Network Load Balancing to meet the requirements as per the above steps.
Three: Verifying Network Load Balancing with IIS services
After Network Load Balancing is configured, to implement a specific service, you need to install the appropriate services on the Network Load Balancing computer. For example, to load balance an IIS Web site, you need to install IIS services on the appropriate network load-balanced computers.
When you install a Network Load Balancing application, you do not need a special method, just install the appropriate service on the computer that is configured for Network Load Balancing. But in order for each user to have access to consistent data when accessing different computers over Network Load Balancing, data consistency needs to be maintained on each computer that is load balanced on the network. For example: Two nodes of IIS Network Load Balancing, 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.
1, in Add/Remove Programs, tap add Windows Components, go to the Windows Components Wizard, double-click Application Server, go to Application Server, select ASP. NET, Internet Information Services, and application network COM + access, To begin installing IIS services.
2, after installation, enter the WEB1 inetpub\wwwroot directory, create a new text file, enter the following: This is WEB1 Save as Default.htm
3, enter WEB2 's Inetpub\Wwwroot directory, create a new text file, and enter the following:

This is WEB2 saved as Default.htm
4, if it is the external IIS, then the content should be the same, here we to achieve obvious effect, only to write the content is not the same, if you want to reach 2 too server site content, you can use DFS automatic replication!
5, we started testing, using an XP to access,
The service is WEB1 when the server is normal, because he has the highest priority

when there is a problem with the Web, the user results when they visit

Four, this test is over!
In addition: the first time to do a double-nic test when there is no exception, but the second time to do a single NIC test when there is a failure

Find registry found, error string and network card information about, the corresponding key is Netcfginstanceid. The host interface for the NLB node must have a different netcfginstanceid.
As tested, NewSID does not modify this value, so although the SID of the two virtual machines is different, an error occurs when the second node joins the NLB cluster because of Netcfginstanceid.
There are two solutions that can be modified Netcfginstanceid:
1. After using NewSID, uninstall the network card in the Device Manager, scan and detect hardware changes, reconfigure the networks;
2. Use Sysprep directly.
Additional information: Registry key where Netcfginstanceid is located
Hkey_local_machine\system\currentcontrolset\control\class\
{4d36e972-e325-11ce-bfc1-08002be10318}\0001\netcfginstanceid
The braces are the "network adapter" items, each system may be different, the following subkeys are several, need to find a local connection corresponding, such as the above is 0001. The simple way is to first look at the name of the network card, such as VMware accelerated AMD pcnet Adapter, and then right-click on the class to find the network card name, you can reach.
it--You---i---him----
Iis

Reprinted from: http://bbs.51cto.com/thread-912261-1-1.html

IIS load-balanced NLB Solution

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.