Server Load balancer-application Request Routing module (ARR) (3) [Define and configure an arr server group]

Source: Internet
Author: User
Definition and Configuration Arr Server Group

 

 

Overview

This article will guide readers step by step inIis7Definition and ConfigurationArrServer group. A server farm is a logical group composed of application servers.HTTPRequest and load balancingAlgorithmUnder management.

 

Target

Based onArrTo define and configure a server farm. The principle is as follows:

 

Prerequisites

The following modules are required for this drill:

LInstalledIis7OfWindows 2008Or update the version.

LMicrosoft Application Request RoutingAnd associated modules

LWorkstation and application composed of at least two application serversProgram

 

Procedure1-Create an arr-basedServer farm

Create and define a server farm in the following way:

1.OpenIISManager

2.Select and expand the server root (ArrIs a server-level feature)

A)

3.To create a server farm, right-clickServer farmsNode,ClickCreate server farmMenu

A)

4.Enter the name of the server farm. Medium, MyserverfarmIs the name of the server farm. ClickNextButton

A)

5.The next step is to add servers to the farm. InAdd ServerAdd servers as needed. ClickFinishButton to complete the add operation (Note: InAdvanced optionsCan be customizedHTTPAndHTTPS):

A)

6.Complete creation process

 

 

To create and define a server farm, run the following command:

1.ToAdministratorIdentity to open the command line

2.Navigate to folder% Windir % \ system32 \ inetsrv

3.CreateMyserverfarmServer farm, inputAppcmd.exe set config-Section: webfarms/+ "[name = 'myserverarm']"/commit: apphost

4.Add a table namedWonyoo-w2k8To the farm, enterAppcmd.exe set config-Section: webfarms/+ "[name = 'myserverarm']. [Address = 'wonyoo-w2k8']"/commit: apphost. If more servers are to be added, run this command multiple times.

5. this step is required in appcmd command-based farm implementation. when a server farm is created using graphics, URL rewrite rules are automatically created. However, when appcmd is used, URL rewrite rules must be created manually. All inbound HTTP when requesting to route to a farm named myserverfarm , enter:

A)Appcmd.exe set config-Section: system. webserver/Rewrite/globalrules/+ "[name = 'Arr _ myserverfarm_loadbalance ', patternsyntax = 'wildcard', stopprocessing = 'true']"/commit: apphost

B)Appcmd.exe set config-Section: system. webserver/Rewrite/globalrules/[name = 'Arr _ myserverfarm_loadbalance ', patternsyntax = 'wildcard', stopprocessing = 'true']. match. URL: "*"/commit: apphost

C)Appcmd.exe set config-Section: system. webserver/Rewrite/globalrules/[name = 'Arr _ myserverfarm_loadbalance ', patternsyntax = 'wildcard', stopprocessing = 'true']. action. type: "Rewrite"/[name = 'Arr _ myserverfarm_loadbalance ', patternsyntax = 'wildcard', stopprocessing = 'true']. action. URL: "http: // myserverfarm/{R: 0}"/commit: apphost

 

 

Procedure2-For arrConfigure server farm attributes

After the farm is created, some additional attributes can be used for management.Arr. In the following example, only some subsets are included.

 

Configure server farm properties in graphical mode:

1.SelectedMyserverfarmServer farm. Shown as follows:

A)

2.In this demonstration, you will changeMyserverfarmFarm Load Balancing algorithms. Double-clickLoad BalanceButton inLoad Balance AlgorithmSelectWeighted Round RobinAnd then clickApply.

A)

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.