Reprinted in: https://blog.csdn.net/2000killer/article/details/51228625
Preface
With the development of the company’s business, background business has become more and more, but the server failure like menstruation, from time to time turbulent, let us be defensive. Then the high availability of the background and the processing capacity of the server need to do a lateral expansion of the scheme, so as to make the background business sustainable and stable usability.Calm the hearts of the people.
Because our back-end business is all. net applications, plus the unanimous recommendation of the director, one of our load balancing solutions is to use Microsoft and IIS integrated reverse proxy Application Request Route. ApplicatioN Request Route, easy to configure and run, is really a great product for Microsoft.
In this article, we will detail the use of Server Farms installation configuration of Application Request Route.
Application Request RouteDownload and install
First you install a web platform installer: https://www.microsoft.com/zh-CN/download/details.aspx?Id=6164
After installation, there will be an open interface. IIS can also be found, double entry.
After entering, install 2 plug-ins, as shown in the order below.
3、After installation, you can see the Server Frams cluster configuration management in the IIS below.
Configuring Server Frams to achieve IIS cluster load
Let’s give an example to demonstrate this operation configuration process and make it more meaningful.
Example: There is a website A, to make this site deployed to 192.168.10.122 and 192.168.10.121 servers, if any of the servers down, then your site can also run normally, according to the two servers.Performance is used to request load configuration processing.
1、Create Server Farm,Deploy the A to the address of the two server, and the port is configured here.
2、Health Test,To verify that the server is working properly, I’ve added a V.txt file to the root directory of the A site to check whether the return value is successful and to determine if the server is working properly.
3、Load BalanceLoad balancing configuration
4、 Monitor and manage configuration, if status is unavailable, start the current process, or check if server deployment is problematic
5、Routing Rules Configure routing, where you can configure the port, domain name and other related information of the distributor.
There are also related configuration information such as caching.
Next we will show the results of labor.
Our distributor is my local machine, and IIS’s application web port is the default 80 port.
Access to this machine: http://localhost/a.html
The above content is on the 122 server, at this point we stopped 122 website, look at the configuration of the display:
The content of the 121 server has been changed. Ha ha, it shows that our configuration is successful.