February 11, 2020

Load balancing with IIS ARR Server Farm

Hi Folks,

I am going explain how can you create a software load balancer with IIS Web Server.
This method is HTTP based load balancing.

Pre-requisites


  1. IIS 7 and above
  2. ARR (Application Request Routing) https://www.iis.net/downloads/microsoft/application-request-routing
  3. Minimum two application servers, preferably running on two different machines

Create ServerFarm


  1. After installing the ARR, you should be able to see "Server Farms" in your IIS Server
  2. Right click on "Server Farms" and select "Create Server Farm"
  3. Give a name to the ServerFarm
  4. You would be navigate to "Add Server" Page
  5. Enter the application server/ip address and click on "Add"
  6. Repeat again to add two or more servers
  7. Check the status of the servers in "Server Address and Status" box
  8. Click on "Ok"

Configure Load Balance


  1. Select the created ServerFarm
  2. Double click on the "Load Balance" item
  3. Choose the following based on your requirement.
  4. The default configuration as follows
    • Load balance algorithm: Weighted round robin
    • Load distribution: Even distribution


Based on the load balance algorithm, the load distribution options would be changed, if applicable.

Routing Rules Configuration


  1. Select the created ServerFarm
  2. Double click on the "Routing Rules" item

Monitor and Manage the servers

  1. Select the created ServerFarm
  2. Double click on the "Monitor and Management" item

Restart IIS

Once you have completed all the steps, perform the following to make sure everything is in sync.
  1. Open powershell in administrator mode
  2. Run the following commands
    1. net stop was /y
    2. net start w3svc


Please send your feedback and comments to psrdotcom@gmail.com

No comments:

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com