In windows, ARR of IIS is used to achieve site load balancing and arr load balancing.

Source: Internet
Author: User

In windows, ARR of IIS is used to achieve site load balancing and arr load balancing.
1) Purpose:

Access localhost: 18066

Load the following two ports

Localhost: 18098

Localhost: 18099

 

2) means:

1. Use nginx

2. Use the ARR (Application Request Routing) of iis)

 

3) use the ARR of IIS

Steps:

1. Deploy porxy site port 18066,

Used for forwarding.

Note:

Set "idel time-out" of the corresponding application pool to 0.

The recovery time needs to be adjusted to 0.

 

 

 

2. Deploy two sites that actually provide services

Ports 18099 and 18098 are configured as needed.

3. Install ARR,

Address (https://www.iis.net/downloads/microsoft/application-request-routing)

4. Set Server Farms

For example, you must specify a port when adding a server. Note: For duplicate addresses, add mappings in windwo \ system32 \ drivers \ ect \ hosts to avoid duplication.

For example:

127.0.0.1 site1host

127.0.0.1 site2host

5. Configure the specified porxy port to use the corresponding Server Farms.

(If this parameter is not specified, all listener ports on iis will use Server Farms to cause an error)

  

  

 

6. Test

Access http: // localhost: 18096/aaa.txt

After configuring the rotation load policy, we can see the corresponding content returned by the two servers.

 

4) Appendix:

Performance Comparison of the three access conditions, using the apache benchmark tool,

The performance of iis arr on the same server is similar to that of direct site access.

In the same way on the same server, the performance of nginx (windows) is only about 1/3.

Access 10898 directly

, AB-n 10000-c 3000 http: // localhost: 18098/Tianji livework.txt

Concurrency Level: 3000

Time taken for tests: 15.609 seconds

Complete requests: 10000

Failed requests: 0

Total transferred: 12730000 bytes

HTML transferred: 10290000 bytes

Requests per secondd: 640.66 [#/sec] (mean)

Time per request: 4682.668 [MS] (mean)

Time per request: 1.561 [MS] (mean, internal SS all concurrent requests)

Transfer rate: 796.45 [Kbytes/sec] canceled ed

 

Access 18066 through nginx

, AB-n 10000-c 3000 http: // localhost: 18066/aaa.txt

Concurrency Level: 3000

Time taken for tests: 38.987 seconds

Complete requests: 10000

Failed requests: 0

Total transferred: 12685000 bytes

HTML transferred: 10290000 bytes

Requests per secondd: 256.49 [#/sec] (mean)

Time per request: 11696.169 [MS] (mean)

Time per request: 3.899 [MS] (mean, internal SS all concurrent requests)

Transfer rate: 317.74 [Kbytes/sec] canceled ed

Access 18096 through iis ARR

, AB-n 10000-c 3000 http: // localhost: 18096/aaa.txt

Concurrency Level: 3000

Time taken for tests: 15.560 seconds

Complete requests: 10000

Failed requests: 0

Total transferred: 12969758 bytes

HTML transferred: 10290000 bytes

Requests per secondd: 642.68 [#/sec] (mean)

Time per request: 4667.967 [MS] (mean)

Time per request: 1.556 [MS] (mean, internal SS all concurrent requests)

Transfer rate: 814.00 [Kbytes/sec] canceled ed

Related Article

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.